You can look at the Android databases, like contacts and such, directly using the adb shell. (Type 'adb shell', then 'sqlite3') Or you can ignore the low-level stuff altogether and learn what you need through the published APIs.
But I find it easier to understand those APIs when I can get a simple look at the database structure and contents. Here's how I did it using a nice bit of freeware and the Eclipse plugin for android (ADT): 1. Download sqlitebrowser from http://sqlitebrowser.sourceforge.net/ This is a freeware app for viewing (and editing!) sqlite databases. I'm using this on MacOS X Leopard, but it runs on Windows and Linux too. 2. Start the Emulator in Eclipse. 3. Open the Android Perspective in Eclipse, and open the Android File Explorer View if it isn't already open (Window->Show View->Other- >Android->File Explorer) 4. Browse in the file explorer down to /data/data/com.google.android.providers.contacts/databases (or some similar directory for a different database; we're looking at contacts here) 5. Select the contacts.db file and click the little floppy-disk icon on the File Explorer toolbar and save contacts.db somewhere on your development machine (the disk icon "pulls" files off the emulator and saves then in your local filesystem; the phone icon goes the other way: it's for uploading to the emulator). 6. run sqlitebrowser, hit the Open button and select contacts.db. There you go - the first tab shows you the database structure (yurgh!) and the second page will let you select a db and show you the records. Any contacts you created in the emulator with the Contacts app will be there. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

