[android-developers] Re: delete the sqlite database?
Probably won't work as you are not loged in as root in the device, while you are loged in as rootin the emulator. You can try anyway...good luck On 23 mar, 12:32, "christian.posta" wrote: > At least one way is to login to the device using the Android Debug > Bridge (http://developer.android.com/guide/developing/tools/adb.html) > and locate the db on disk. I know it works on the emulator, and I'm > pretty sure it works on a physical device as well. > > When the device is connected up, use 'adb devices' to show what > devices that the adb can connect to. Then do a 'adb -s > shell' command to get to the command line. > > Usually the databases will be in /data/data//databases > > Try deleting using the command line (rm). > > Let me know if this works for you. > > Christian > > On Mar 23, 6:36 am, Ray da Costa wrote: > > > > > How do I delete the sqlite database exists in my android? There is a db > > behind my android qro and delete the same > > > -- > > Ray da Costa > > "The best way to predict the future is to invent it." > > Alan Kay -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
[android-developers] Re: delete the sqlite database?
Unless you're on a rooted device (and you've su'd to the root user) I do not believe this will work -- Android maintains proper user/group permissions to prohibit things like one application mingling with an unrelated application's data, and the "adb shell" doesn't get privileges that can circumvent that (without a rooted device). On Mar 23, 11:32 am, "christian.posta" wrote: > At least one way is to login to the device using the Android Debug > Bridge (http://developer.android.com/guide/developing/tools/adb.html) > and locate the db on disk. I know it works on the emulator, and I'm > pretty sure it works on a physical device as well. > > When the device is connected up, use 'adb devices' to show what > devices that the adb can connect to. Then do a 'adb -s > shell' command to get to the command line. > > Usually the databases will be in /data/data//databases > > Try deleting using the command line (rm). > > Let me know if this works for you. > > Christian > > On Mar 23, 6:36 am, Ray da Costa wrote: > > > How do I delete the sqlite database exists in my android? There is a db > > behind my android qro and delete the same > > > -- > > Ray da Costa > > "The best way to predict the future is to invent it." > > Alan Kay -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
[android-developers] Re: delete the sqlite database?
At least one way is to login to the device using the Android Debug Bridge (http://developer.android.com/guide/developing/tools/adb.html) and locate the db on disk. I know it works on the emulator, and I'm pretty sure it works on a physical device as well. When the device is connected up, use 'adb devices' to show what devices that the adb can connect to. Then do a 'adb -s shell' command to get to the command line. Usually the databases will be in /data/data//databases Try deleting using the command line (rm). Let me know if this works for you. Christian On Mar 23, 6:36 am, Ray da Costa wrote: > How do I delete the sqlite database exists in my android? There is a db > behind my android qro and delete the same > > -- > Ray da Costa > "The best way to predict the future is to invent it." > Alan Kay -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.