title: SQLite Database Does Not Exist Android
body: <p><strong>EDIT: Removed Previous Code For Clarity</strong></p>
  
  <p>On suggestion, I added log messages to see where I am getting stopped up.</p>
  
  <p>It appears that it is properly throwing the call to <code>checkDatabase()</code>, but not going back to copy the database. This is my <code>checkDatabase()</code> method:</p>
  
  <pre><code>File dbFile = new File(DB_PATH + DB_NAME);
          if(dbFile.exists()){
              Log.d("True","Returned true");
              return true;
  
          }else{
              dbFile.getParentFile().mkdirs();
              Log.d("CreatedPath","Made the right directory");
              return false;
          }
  </code></pre>
  
  <p>In the debug logs I can see my 'Created Path' message. So it's getting that far.</p>
  
  <p>It then returns false, which <em>should</em> start this:</p>
  
  <pre><code>public void createDataBase() throws IOException{
  
          boolean dbExist = checkDatabase();
          if (!dbExist){
  
              this.getReadableDatabase();
  
              // Calling this method an empty database will be
              // created into the default system path of 
              // the app so we can overwrite with FirstDB.
  
  
              try{
  
                  copyDatabase();
  
              }catch (IOException e) {
                  throw new Error("Error copying database");
  
              }
          }
      }
  </code></pre>
  
  <p>However, I am not seeing those log messages at all. It's like it returns false and just keeps on moving.</p>
  
  <p>Do I need to call <code>createDataBase()</code> again?</p>