0

I'd like to use ContentResolver.bulk(uri, ContentValues[]) method.

I have sqlite database stored under the database folder inside the app private storage. Database is named mydb.db

What would be the Uri to the table named BUDGET? Do i need to connect ContentResolver to my database somehow?

1
  • ContentResolver.bulk is used if you are using Content Provider. I dont think think you can use it for sqlite db operations. When bulk function is called ContentProvider's bulkInsert method is called Commented Jan 11, 2013 at 13:35

1 Answer 1

1

You need to implement a content provider. Your content provider would then store the data in the SQLite DB. See the Android docu for details.

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

2 Comments

Is it worth using instead regular sqlite database ?
That depends on your program, content providers work nicely with CursorLoader or when you want to export your data for external use.

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.