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

[ad_1]

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

myDb = new DatabaseHelper(this);

5

[ad_2]

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