vendredi 27 février 2015

Android application Can't access database for insert and update

I am developing notes application for Android, when I click the save button it is supposed to insert data to the db using the content provider method insert, after that the loader will automatically load the data, and the simplecursoradapter should populate that data. However, after clicking save nothing appears. It seems to me that the app can't access the database as I am getting this log when clicking the save button,



02-27 12:31:31.112: E/SQLiteLog(13232): (257) Open fd: 74, file: /data/data/com.project.android.notes/databases/notes.db-journal
02-27 12:31:31.112: E/SQLiteLog(13232): (257) Close fd: 74
02-27 12:31:31.112: E/SQLiteLog(13232): (257) Open fd: 74, file: /data/data/com.project.android.notes/databases/notes.db-journal
02-27 12:31:31.186: E/SQLiteLog(13232): (257) Close fd: 74
02-27 12:31:31.271: E/SQLiteLog(13232): (257) Open fd: 80, file: /data/data/com.project.android.notes/databases/notes.db-journal
02-27 12:31:31.271: E/SQLiteLog(13232): (257) Close fd: 80
02-27 12:31:31.907: E/MCA(13851): Here call up the service!
02-27 12:31:31.908: E/MCA(13851): LT passed!
02-27 12:31:34.392: E/(180): AudioCloseDumpPCMFile file== NULL
02-27 12:31:34.392: E/(180): AudioCloseDumpPCMFile file== NULL


Can anyone please tell me why this is happening and how to fix the problem?


Thanks


Aucun commentaire:

Enregistrer un commentaire