title: Accessing the database of one application from another application
body: <p>I've built an application and now I want to copy the database of that running application using my new backup application. I create my database path by doing <code>DB_PATH + DB_NAME</code>, using the following values: </p>
  
  <pre><code>DB_PATH = "/data/data/iCam.Cam/";
  DB_NAME = "testdb.db";
  </code></pre>
  
  <p>I have code which copies the database from the given path to the SD Card. However, when I initially check the database using the following method, it returns <code>false</code>:</p>
  
  <pre><code>public boolean checkDataBase() {    
      SQLiteDatabase checkDB = null;
  
      try {
          String myPath = DB_PATH + DB_NAME;
          checkDB = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READONLY);
      } catch (SQLiteException e) {
          e.fillInStackTrace();
          // database does't exist yet.
      }
  
      if (checkDB != null) {
          checkDB.close();
      }
  
      return checkDB != null ? true : false;
  }
  </code></pre>
  
  <p>Any suggestions on how to achieve this?</p>