开发者

SQLiteDatabse and ContentProvider in android

开发者 https://www.devze.com 2023-02-23 12:37 出处:网络
I want to create my application\'s own call logs. How to use SQLiteDatabase or/and ContentProv开发者_StackOverflowider in my application to store and retrieve call log information. I am very confused

I want to create my application's own call logs. How to use SQLiteDatabase or/and ContentProv开发者_StackOverflowider in my application to store and retrieve call log information. I am very confused in SQLiteDatabese and in ContentProvider. Please help me. I am very confused and stuck here.

thanks in advance. Any help is appreciated.


You need implement the SQLiteOpenHelper and create your databases with an SQL for storing log.

Then use your instance to open(), getWritableDatabase() to write to, and remember to close() after all operations.

0

精彩评论

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