[Solved] Android: Passing values to another activity’s function and then to Sqlite database [duplicate]


You forgot to initialize myDb.
Initialize it in your onCreate() method:

myDb = new DatabaseHelper(this);

5

solved Android: Passing values to another activity’s function and then to Sqlite database [duplicate]