How to get reference of (SQLiteDatabase) to use android contact database

by Bassel Kh » Wed, 17 Feb 2010 05:12:32 GMT


Sponsored Links
 Hello guys,
I'm new to Android technology, so I need your help please.

I'm familiar with SQL quires, so I need to use
(SQLiteDatabase.rawQuery) in order to query (android contact
database), but the question is:

How to get reference to (SQLiteDatabase) in order to deal with android
contacts database (ready made DB from another application) ?
 I passed "\data\date\com.android.contacts\contacts" and didn't work

In case of private database created by my application; it is easy to
do that, but in case of ready made applications like
(contacts,SMS,call logs) what should I pass to the following method as
path?

SQLiteDatabase.openDatabase(path, factory, flags)


And if I give permission to read the database; will it work?


Thanks

--



Other Threads

1. Office package

Can somebody help, how do I download attachments of word, excel, ppt
etc from the email on the phone?

--~--~---------~--~----~------------~-------~--~----~

2. Android and Sketchup

Does anyone know if it is possible to display images created in Google
Sketchup on the Android? I did a quick search and didn't see an answer
to this so I thought I would see if anyone has had any experience with
this yet.

Thanks In Advance,
Dan

--~--~---------~--~----~------------~-------~--~----~

3. problem with playing sounds using media player

4. Updation of the Media Data base in emulator only on bootup/mount/recording?

5. How to simulate the user moving the cell phone from vertical to horizontal?

6. View.onSaveInstanceState - How to implement it?

7. problem with playing sounds using media player