I have an application where I am getting the latitude and longitude coordinates.
I want , when to press a button to start navigating to that position .
Now ,
one possible way is to store your latitude and longitude values in shared preferences.
-To store values you can use
SharedPreferences sp = getSharedPreferences("MyPrefs", MODE_PRIVATE);
Editor editor = sp.edit();
editor.putString("mytext", text);
editor.commit();
-and to retrive those values you can use
String value = prefs.getString("MyPrefs, "mytext");
in your code your are storing latitude and longitudes in double do not forget to convert them in toString()...
hope this helps