0

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?

2
  • Have you tried insertOrThrow? Commented May 17, 2011 at 4:35
  • Ahh! There are problems with my insert statemnt. Reset your comment as an answere as how to find out the underlying problem. Commented May 17, 2011 at 4:58

2 Answers 2

2

i think this url will Help you http://androidinsertdata.blogspot.com/2011/05/deals-with-database.html

Sign up to request clarification or add additional context in comments.

Comments

1

Have you tried insertOrThrow(...)?

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.