开发者

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(...)?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜