Question: Answer the following questions: a. Complete the following OnCreate() method for creating the SQLite database. package itsw4104.mad.sqldatabases; public class MainActivity extends Activity { SQLiteDatabase db;
Answer the following questions:
a. Complete the following OnCreate() method for creating the SQLite database.
package itsw4104.mad.sqldatabases;
public class MainActivity extends Activity {
SQLiteDatabase db;
@Override
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main);
TextView txtMsg = (TextView) findViewById(R.id.txtMsg);
// path to the external SD card (something like: /storage/sdcard/...)
// String storagePath = Environment.getExternalStorageDirectory().getPath();
// path to internal memory file system (data/data/itsw4104.mad.databases)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
