开发者

Android: database is not saving insert

开发者 https://www.devze.com 2023-03-06 21:06 出处:网络
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);

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

精彩评论

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

关注公众号