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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!