I m try to convert my string value to double, the values i take it from server with web service, here is my code:
private EditText lat;
private EditText lng;
i declare them as text
lat.setText(performance.latitude);
lng.setText(performance.longitude);
and now i declare them in my app screen as well,
@Override
public View onCreateView(LayoutInflater inflater,
ViewGroup container,
Bundle savedInstanceState) {
View k = inflater.inflate(R.layout.klient_fragment_kartela, container, false);
lng = (EditText) k.findViewById(R.id.longitude);
lat = (EditText) k.findViewById(R.id.latitude);
return k;
my problem is that i need to declare them as double in the method LatLng, but don't know how, can you help pls. Thnx all