Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 780733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T20:07:21+00:00 2026-05-14T20:07:21+00:00

I get this weird exception when i run my app on both the emulator

  • 0

I get this weird exception when i run my app on both the emulator and a USB connected device. i can see the table inside the shell, but when I try to insert a record from the Activity acton I get this exception:

android.database.sqlite.SQLiteException: table audios has no column named downloaded

I am mostly running on an emulator with Android 1.5. The predominant part of my code is linked to this tutorial – http://www.devx.com/wireless/Article/40842/1954.

This is the create statement I use:

 private static final String DATABASE_CREATE =
  "create table audios ( _id integer primary key autoincrement, "
  + "user_name text not null, title text not null, file_path text not null, download integer not null, " 
  + "created_at integer not null, downloaded_at integer not null );";

This is the insert code I use:

//--- insert a title into the database ---
 public long insertTitle(String user_name, String title, String file_path, Integer downloaded, long created_at, String downloaded_at ) {
  ContentValues initialValues = new ContentValues();
  initialValues.put(KEY_USER_NAME, user_name);
  initialValues.put(KEY_TITLE, title);
  initialValues.put(KEY_FILE, file_path);
  initialValues.put(KEY_DOWNLOADED, downloaded);
  initialValues.put(KEY_CREATED_AT, created_at);
  initialValues.put(KEY_DOWNLOADED_AT, downloaded_at);
  return db.insert(DATABASE_TABLE, null, initialValues);
 }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T20:07:21+00:00Added an answer on May 14, 2026 at 8:07 pm

    I will hazard a guess that you have this in your code:

    public static final String KEY_DOWNLOADED = "downloaded";
    

    The reason for the error message is that…

    table audios has no column named downloaded

    Really. It doesn’t, just as the error message says.

    If you re-read your table-creation SQL, you’ll notice that the column name is actually download, not downloaded.

    So correct your code to use the correct column name and you should be set. Note that correcting the code could mean either:

    1. changing the column name in your table to be downloaded instead of just download. Personally I would go with this one, unless you have lots of other code already using download, since download in my mind is either a download or to download, not has been downloaded, but it really depends on its actual meaning
    2. changing the column name in the SQL that accesses the table to use the same column name as the table
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I get this error on my Ice Cream Sandwich (Android 4.0) device and emulator.
Just a weird exception that I can't get my head around My code: <ListBox
I'm trying to make LocationManager work and get weird security exception. When I run
I get a weird exception on a XP machine when I run a LINQ
Hello I get a weird error in this code: function validateForm(aform) { var s=;
I get this error when I run the code below. I have normally used
I get this error when I use simplejson from django.utils in google app engine
I get this error in my app { error: { message: Missing client_id parameter.,
Hello I'm getting this weird exception when I try to initialize HttpSolrServer from my
This is kind of a weird question but... If I run this query in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.