title: So geocoder.getFromLocationName returns NULL / USE JSONObject
body: <p>Ok so we established that GEOCODER dose not work on some mobiles</p>
  
  <p>So I fond this solution, from a guy called @Filip, which seems legit solution</p>
  
  <pre class="lang-js prettyprint-override"><code>package com.something.something;
  
  import android.os.AsyncTask;
  import org.json.JSONException;
  import org.json.JSONObject;
  import java.io.InputStream;
  import java.io.InputStreamReader;
  import java.net.HttpURLConnection;
  import java.net.URL;
  
  
  public class GetLocationDownloadTask extends AsyncTask&lt;String, Void, String&gt; {
  
  @Override
  protected String doInBackground(String... strings) {
  
      String result = "";
      URL url;
      HttpURLConnection urlConnection;
      try {
          url = new URL(strings[0]);
          urlConnection = (HttpURLConnection) url.openConnection();
          InputStream is = urlConnection.getInputStream();
          InputStreamReader inputStreamReader = new InputStreamReader(is);
  
          int data = inputStreamReader.read();
          while(data != -1){
              char curr = (char) data;
              result += curr;
              data = inputStreamReader.read();
          }
  
          return result;
  
      } catch (Exception e) {
          e.printStackTrace();
      }
  
      return null;
  }
  
  @Override
  protected void onPostExecute(String result) {
      super.onPostExecute(result);
  
      if (result != null) {
          try {
  
              JSONObject locationObject = new JSONObject(result);
              JSONObject locationGeo = locationObject.getJSONArray("results").getJSONObject(0).getJSONObject("geometry").getJSONObject("location").getJSONObject("lat");
  
  
  
  
          } catch (JSONException e) {
              e.printStackTrace();
          }
      }
  }
  }
  </code></pre>
  
  <p>And I have to run it from my MapsActivity by this coding this:</p>
  
  <pre class="lang-js prettyprint-override"><code>String searchString = mSearchText.getText().toString(); 
  
  String link = "https://maps.googleapis.com/maps/api/geocode/json?address=" + 
  searchString + "&amp;key=MY API KEY";
  
      GetLocationDownloadTask getLocation = new GetLocationDownloadTask();
  
      getLocation.execute(link);
  </code></pre>
  
  <p>This is all fine, but what I didn't understand is what happens next ? I need those lat lng to process further, how do I get them after EXECUTING(link) ?</p>
  
  <p>Any help is appreciated, it is mind boggling issue. Geocoding needs a backend, and not all devices support.</p>