> In my activity, I create a database using the following:
>
> db.execSQL("CREATE TABLE favorites (" + "_id INTEGER PRIMARY KEY)'"
> );
>
> But can you please tell me where will android create the database file?
> I try 'adb shell' and then 'cd /data/data/com.mycompany.myactivity',
> but there is no database there.
/data/data/com.mycompany.myactivity/databases, but only after you create
the database. Note that your code snippet creates a table -- however you
got your SQLiteDatabase object would need to have created the database
itself.
--
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!
--~--~---------~--~----~------------~-------~--~----~
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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---