Android: database is not saving insert
I'm hoping this is a bit of no-brainer. I'm doing something like:
values.put("name", name);
m_db.insert(PHOTOS开发者_如何学运维, null, values);
m_db.close();
afterwards, when I check (either in my code or the adb console), nothing is there?
What am I missing?
i think this url will Help you http://androidinsertdata.blogspot.com/2011/05/deals-with-database.html
Have you tried insertOrThrow(...)?
精彩评论