¡@

Home 

2014/10/16 ¤W¤È 08:14:11

android Programming Glossary: getlocationdetails

Service not available while calling geoCoder.getFromLocation()

http://stackoverflow.com/questions/15110528/service-not-available-while-calling-geocoder-getfromlocation

google back end service might not be available. Hence a solution might be to loop until i get the data. private class getLocationDetails extends AsyncTask String Void String @Override protected String doInBackground String... params Log.d looping count count.. user_district addr.getSubAdminArea if user_city null user_city user_district catch Exception e Log.e Exception in getLocationDetails e.getMessage return null return @Override protected void onPostExecute String result if result null Log.d user_city.. null return @Override protected void onPostExecute String result if result null Log.d user_city user_city else new getLocationDetails .execute CurrentLat CurrentLng @Override protected void onPreExecute @Override protected void onProgressUpdate Void.....