Jacek Kwiecień
Jacek Kwiecień

Reputation: 12639

Inserting data to sqlite database using ContentResolver

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?

Upvotes: 0

Views: 983

Answers (1)

Henry
Henry

Reputation: 43738

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.

Upvotes: 1

Related Questions