public void onClick(View v) { String etLocal = customDialog_EditText.getText().toString(); SharedPreferences sh1 = getSharedPreferences(MainActivity.stg, 0); String s1 = sh1.getString("latitude", ""); String s2 = sh1.getString("longitude", "");
SharedPreferences sh1 = getSharedPreferences(MainActivity.stg, 0); SharedPreferences.Editor editor = settings.edit(); editor.putString("latitude",yourLatitudeString); editor.putString("longitude",yourLongitudeString); editor.commit();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)