Skip to content Skip to sidebar Skip to footer

Error With Inserting Data Into Sqlite Database

I'm trying to insert data into SqLite database by using a dialog wrapper. However, I am unable to do so. I have 2 texts called Title and Template to insert into the database. But i

Solution 1:

It's hard to tell without line numbers in your code to match the traceback but I'm guessing that (EditText) findViewById(R.id.title) is returning null. Check your app in hierarchyviewer at the time you're doing the insert and make sure the view you think is there in the hierarchy is actually there at the time you're processing the insert code.


Post a Comment for "Error With Inserting Data Into Sqlite Database"