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