How to see the sqlite DB created on the default path on the device?


  1. ajitandroid26

    ajitandroid26 Member

    Hi All,

    I am creating the sqlite database on the default path.
    From the emulator I am able to find the database file.
    But When I am installing in the device the database is getting created but I am not able to browse to the /data/data/<My package Name>/databases/database name folder.
    Even from the device I am not able to browse to the /data folder
    through the adb shell commnd its giving the permission denied error.

    So how to see the sqlite database file created in the default path in the device?

    Please help me...

    Thanks & Regards,
    Ajit

    Advertisement
    :
  2. miXer

    miXer Well-Known Member

    I think you have to root your phone to gain access to that folder.
    ajitandroid26 likes this.
  3. RNekic

    RNekic Member

    Yeah, I think you are stuck either rooting the phone to adding some code to your app that copies the database to the SD card when you want to examine it.
    ajitandroid26 likes this.
  4. ajitandroid26

    ajitandroid26 Member

    Thanks for your reply!!!

    But how to do rooting the phone so that I can copies the database to the SD card or to the system.

    Please help me...

    Thanks & Regards,
    Ajit
  5. ajitandroid26

    ajitandroid26 Member


    Thanks for your reply!!!

    How to do that?
    Please help me through sample code or by providing some example or useful sites.

    Thanks & Regards,
    Ajit
  6. miXer

    miXer Well-Known Member

  7. RNekic

    RNekic Member

    You don't need to root your phone to copy your database to the SD card if you are working in the same app that created the DB. You already have access to the DB from within your app; after all, you created the file. There are many Java examples for copying a File to another File. You'll need to add SD card permissions to your app, but otherwise it's a simple Java File copy.






Loading...

Share This Page