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

  • Home
  • SEARCH
  • 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 8843663
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:17:09+00:00 2026-06-14T11:17:09+00:00

I have been working on an android app for a while now, and have

  • 0

I have been working on an android app for a while now, and have gotten it to the point where I have handed it in and received my grade already. However, I have been playing around with it in my spare time, and would like to upgrade it a little. To summarize what my app does so far:

  • Allows user to create a list of classes
  • Allows user to create a list of assignments for those classes
  • Allows user to edit classes/assignments

I have recently been getting a force close after editing my helper class for the assignments. I have been able to narrow down where the issue is originating.

return (getReadableDatabase().rawQuery("SELECT _id, assname, urge, name, assday, assmonth FROM assignments ORDER BY "+ orderBy, null));

it seems like that particular statement is giving me an error in both instances that it appears.

return (getReadableDatabase().rawQuery("SELECT _id, assname, urge, name, assday, assmonth FROM assignments WHERE _ID=?", args));

When I remove assday and assmonth from both of those statements and stop the program from adding them to the content values, the error goes away.

All I want to do is add a column for the due date and month so I can display it on the assignments list. I know how to do this, however the error is stopping me. Thank you in advance.

  • 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-06-14T11:17:10+00:00Added an answer on June 14, 2026 at 11:17 am

    I am sorry for the vague question and for the slow response times. I was careless in attempting to implement this feature and managed to overlook adding the columns to the table in the “CREATE TABLE” statement. I apologize for everybody’s wasted time.

    Before: db.execSQL("CREATE TABLE assignments (_id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT, address TEXT, type TEXT);");

    After: db.execSQL("CREATE TABLE restaurants (_id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT, address TEXT, type TEXT, assday TEXT, assmonth TEXT);");

    Since I have two helper classes (which I have been informed is a bad idea, and I now see why) I forgot to edit the one whose onCreate() is called. I once again am sorry for the negligence on my part.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been working on a bluetooth app for android for awhile now and
AdMob has been working in my Android app for a while now until recently
I am new to stackoverflow! I have been working on an app in android,
I have been working on my app for several months now, and it is
I am experiencing some weird behavior with an android app I have been working
Hi i have been working through my first android app and it's starting to
I have been working on an app to start out on android. I have
I have been working on an app to respond to received SMS messages (before
Okay so i have been working on this app for a couple months now
I have been working on an Android app and I want to display a

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.