Found Solution: pasting it for future reference double lat = loc.getLatitude(); double lon = loc.getLongitude();
TextView Longitude = (TextView) findViewById(R.id.lang); TextView Latitude= (TextView) findViewById(R.id.lat); Longitude.setText(String.valueOf(lon)); Latitude.setText(String.valueOf(lat)); but here comes another problem. I am giving Longitude and Latitude from Emulator Controller. Longitude = 6.081478 Latitude= 50.775466 but in emulator it shows me this Longitude = 6.081476666666666 Latitude= 50.775465000000004 may i know why ???? On Feb 21, 11:09 pm, Atif Musaddaq <[email protected]> wrote: > Hi, All > > I get value of Longitude and Latitude whenever user Location changes. > > double lat = loc.getLatitude(); > double lon = loc.getLongitude(); > > I would like to display it in Text view > > final TextView Longitude = (TextView) findViewById(R.id.lang); > final TextView Latitude= (TextView) findViewById(R.id.lat); > > Now i donot know how i can either convert *double lat *toString or convert > Longitude and Latitude so they can store value of lat and lon. > > also please let me know if i am doing it in a right way ? I would like user > to save its desired location when ever he/she want. > > -- > Atif -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

