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. Developing an app using a retail phone

Can anyone confirm for me that if I purchase a retail Android phone,
such as the HTC Dream (G1) that I can use it to develop applications?

I suspect that the answer is yes, but I want to confirm that a retail
phone can be used for developing apps before I shell out my money.

Thanks for any assistance.

Warwick

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

2. Rolodex View

Hi,

I am planning to implement a RolodexView in android using the gallery
widget.Am fairly new to android.Is it possible to extend the Gallery
widget to create a rolodex or should we need to create our own
customised component.
Any inputs would great.

Thanks,
Navin
--~--~---------~--~----~------------~-------~--~----~

3. Where to put xml file????

4. Invalidates the TabView

5. expandable list

6. URLConnection.getOutputStream() working fine in java main but not in android activity (Urgent plz)

7. My Log messages fails to appear on Logcat View