title: Android sqlite creating database error
body: <p>i am newbie with android sqlite database. now i just try to create my custom database manager and i got the error at oncreate() function. I already spent 3 days to figure it out but unfortunately i am still stuck in it. Any brilliant idea would be appreciate.</p>
  
  <pre><code>public class DBManager extends SQLiteOpenHelper {
  private SQLiteDatabase db;
  private static Context myContext;
  public static final String DB_NAME = "goldenland.db";
  public static final String TB_CAT = "tbl_categories";
  public static final String TB_ARTICLE = "tbl_articles";
  public static final String TB_SUBCAT = "tbl_subcategories";
  public static final String TB_SCHEDULE = "tbl_schedule";
  public static final String TB_CONTENT = "tbl_contents";
  public static final String TB_CITY = "tbl_cities";
  public static final String name = "name";
  public static String DB_PATH = "/data/data/com.gokiri.goldenland/databases/";
  
  public DBManager(Context context) {
      super(context, DB_NAME, null, 1);
      DBManager.myContext = context;
  }
  
  public void createDataBase() throws IOException {
      boolean dbExit = checkDataBase();
  
      if (dbExit) {
          System.out.println("Testing");
      } else {
          this.getReadableDatabase();
  
          try {
              copyDataBase();
  
          } catch (IOException e) {
              throw new RuntimeException(e.getMessage());
  
          }
      }
  }
  
  private boolean checkDataBase() {
      SQLiteDatabase checkDb = null;
  
      try {
          String myPath = DB_PATH + DB_NAME;
  
          checkDb = SQLiteDatabase.openDatabase(myPath, null,
                  SQLiteDatabase.OPEN_READWRITE);
      } catch (SQLException e) {
  
      }
  
      if (checkDb != null) {
          checkDb.close();
      }
      return checkDb != null ? true : false;
  }
  
  public void copyDataBase() throws IOException {
  
      InputStream myInput = myContext.getAssets().open("goldenland_2.sqlite");
  
      String outFileName = DB_PATH + DB_NAME;
      OutputStream myOutput = new FileOutputStream(outFileName);
  
      byte[] buffer = new byte[1024];
      int length;
      while ((length = myInput.read(buffer)) &gt; 0) {
          myOutput.write(buffer, 0, length);
      }
      myOutput.flush();
      myOutput.close();
      myInput.close();
  }
  
  public void openDatabase() throws SQLiteException {
  
      String myPath = DB_PATH + DB_NAME;
      db = SQLiteDatabase.openDatabase(myPath, null,
              SQLiteDatabase.OPEN_READWRITE);
  
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/cKES1.png" alt="Error Log Cat"></p>