get latitude and longitude with geocoder and android Google Maps API v2
Try this solution using this example url: http://maps.google.com/maps/api/geocode/json?address=mumbai&sensor=false which returns data in json format with lat/lng of address. private class DataLongOperationAsynchTask extends AsyncTask<String, Void, String[]> { ProgressDialog dialog = new ProgressDialog(MainActivity.this); @Override protected void onPreExecute() { super.onPreExecute(); dialog.setMessage(“Please wait…”); dialog.setCanceledOnTouchOutside(false); dialog.show(); } @Override protected String[] doInBackground(String… params) { String response; try { response = getLatLongByURL(“http://maps.google.com/maps/api/geocode/json?address=mumbai&sensor=false”); … Read more