title: Android Studio - SQLiteOpenHelper issues
body: <p>I have the following Java Class </p>
  
  <pre><code>package com.sjhdevelopment.shaunharrison.myejuiceapp;
  
  import android.content.Context;
  import android.database.sqlite.SQLiteDatabase;
  import android.database.sqlite.SQLiteOpenHelper;
  
  public class MyDBHelper extends SQLiteOpenHelper {
  
  public static final String DATABASE_NAME = "EJuiceData.db";
  public static final int DATABASE_VERSION = 1;
  
  
  public MyDBHelper(Context context) {
      super(context, DATABASE_NAME, null, DATABASE_VERSION);
  
  }
  
  public void onCreate(SQLiteDatabase database) {
      database.execSQL("create table if not exists Inventory");
  }
  
  @Override
  public void onUpgrade(SQLiteDatabase database, int oldVersion, int newVersion) {
      if (newVersion &gt; oldVersion)
          database.execSQL("ALTER TABLE Recipe ADD COLUMN NOTES TEXT");
      onCreate(database);
  }
  
  }
  </code></pre>
  
  <p>Then in my main activity I have the following;</p>
  
  <pre><code>public class Calculation extends AppCompatActivity {
     private MyDBHelper dbHelper;
     protected void onCreate(Bundle savedInstanceState)
     {
       super.onCreate(savedInstanceState);
       setContentView(R.layout.activity_calculation);
        try {
          dbHelper = new MyDBHelper(this);
          dbHelper.getWritableDatabase();
  
        }
        catch(Exception e)
        {
          showError("Error", e.getMessage());
        }
     }
  </code></pre>
  
  <p>However, when I debug the code to see if the database + tables are being created with a break point on the try and on the database.execSQL("create.... 
  There debugger doesn't actually go into the MyDBHelper class to do anything, therefore I'm assuming that the database + tables aren't being created</p>
  
  <p>I've looked online and it says that when a getWritableDatabase/readable is called the onCreate method should get called</p>
  
  <p>Any idea's as to what I'm doing wrong?</p>