The application is supposed to be a simple appllication that gets an entry from the user, consisting of a title and content and displays it.
Here is a clip of the code
public void insertData(String title, String content) {
ContentValues values = new ContentValues();
values.put("title", title);
values.put("content", content);
try {
database.insertOrThrow(ENTITY_TABLE, null, values); //<---ERROR POINTER
} catch (SQLException e) {
Log.e(ENTITY_TABLE, e.toString());
}
}
the debuger keeps breaking at that line of code but I can see no errors in my application. This is driving me crazy.
MOD EDIT: Added code tags. When posting code...USE CODE TAGS!!!
This post has been edited by JackOfAllTrades: 18 September 2012 - 04:28 AM

New Topic/Question
Reply


MultiQuote







|