title: This IP, site or mobile application is not authorized to use this API key. in android google maps
body: <p>I got a poly line between two locations using google maps and when i want to get routes and directions between those two locations by using this URL using Json parsing
  <a href="https://maps.googleapis.com/maps/api/directions/json?origin=fromlocation&amp;destination=destinationlocation&amp;sensor=false&amp;key=" rel="nofollow">https://maps.googleapis.com/maps/api/directions/json?origin=fromlocation&amp;destination=destinationlocation&amp;sensor=false&amp;key=</a><strong>********API KEY*********</strong> 
  it is getting the json parsing as 
  {
     "error_message" : "This IP, site or mobile application is not authorized to use this API key.",
     "routes" : [],
     "status" : "REQUEST_DENIED"
  }
  I have got the authorized APIKEY using keytool and with package name and finger print key</p>
  
  <p>here is the code what i have done thanks  in advance and  sorry for my english...</p>
  
  <p>private class GetContacts extends AsyncTask {</p>
  
  <pre><code>    @Override
      protected void onPreExecute() {
          super.onPreExecute();
          // Showing progress dialog
          pDialog = new ProgressDialog(DirectionActivity2.this);
          pDialog.setMessage("Please wait...");
          pDialog.setCancelable(true);
          pDialog.show();
  
      }
  @Override
  protected Void doInBackground(Void... arg0) {
  
      String URL="https://maps.googleapis.com/maps/api/directions/json?origin=start&amp;destination=end&amp;sensor=false&amp;key=****API KEY*****";
  ServiceHandler sh = new ServiceHandler();
  
  // Making a request to url and getting response
  String jsonStr = sh.makeServiceCall(URL, ServiceHandler.GET);
  
  Log.d("Response: ", "&gt; " + jsonStr);
  return null;
  }
  
  @Override
  protected void onPostExecute(Void result) {
      super.onPostExecute(result);
      // Dismiss the progress dialog
      if (pDialog.isShowing())
          pDialog.dismiss();
  
  
  }
  </code></pre>
  
  <p>}</p>