how to store text field of toast into SQLite database : i have been writing this code for getting location.how to store "mg" in SQLite database of android

public void onLocationChanged(Location location) {
        String mg = " Latitude:" + location.getLatitude() + " Longitude:" + location.getLatitude();
       Toast.makeText(getBaseContext(),mg, Toast.LENGTH_LONG).show();