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\\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

SQLiteDatabase.openDatabase(path, factory, flags)

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



Other Threads

1. Confusion about selection


WHICH I SHOULD LEARN FIRST j2me or android. Give ur vote pls to identify
what to learn.

I have just started Android development but after reading starting concepts
I am confused about selection. Whether I should learn J2ME first and 

Then android because Android requires JAVA. Which should I learn first ?
Because it will be same to learn both then I should start with j2me because

Atleast I will have java knowledge when I will start android.


Please reply me to identify.



Thanks and Regads,

Pratik Patel

Sr. Software Engineer



email: <> 
+ 91 265 2324018/19 (O)
+ 91 265 2334156     (F)



2. Internal memory is gone, what to do?

I recently got a warning notification saying that my G1 internal
memory was almost full.  I haven't downloaded any new applications
recently, so what am I supposed to do to clear up space?

G1 internal memory sucks, by the way.

3. how to print foreign lanugage font -- hebrew?

4. How to Replace of existing default Application by the Application created by me

5. Looking for news writers and community moderator.

6. Eclipse plugin URL invalid?

7. send gps location through Eclipse and be nofified through LocationListener.onLocationChanged