I am getting an error while connecting to Sqlite DB in android through command prompt.
Here are the steps I have followed:
- I have created Sqlite DB through java program in android. Created table and inserted data into it. Executed query to get data. Everything fine!!!!
- Tried to conned to DB though Command Prompt : - D:\adt-bundle-windows-x86-20131030\adt-bundle-windows-x86-20131030\sdk\platform-tools> adb shell adb shell root@generic:/ # sqlite3 /data/data/package-name/databases/SampleDB.db sqlite3 /data/data/package-name/databases/Samp ant.encryptdata/databases/Samp <leDB.db SQLite version 3.7.11 2012-03-20 11:35:50 Enter ".help" for instructions Enter SQL statements terminated with a ";" sqlite> .tables .tables SQL Error: unable to open database "/data/data/com.congnizant.encryptdata/databases/SampleDB.db": unable to open database file 1|root@generic:/ #
Actually i want to post screenshot for better understanding but i dont know why its not working(may be becuase of my office firewall).
Permision for SampleDB is '-rw-rw----';
So where am I doing worng?
Note: The database is present having one sample table and i can read write data into that table.
 
     
     
    