title: illegala argument exception : illegal argument in query
body: <p>Here posting error related code and logs ,issue is trying display places using map api v2 ,while sending data to url getting this exception ,so i think problem in sending request but i got JSON data <a href="https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=21.21544712,81.32074942&amp;radius=1000&amp;sensor=true&amp;types=food%7Cbar%7Cclub&amp;key=AIzaSyDd0nvZVyPxj10fWbgD4t_n_KG_TDKDl60" rel="nofollow">like this</a> help me.</p>
  
  <pre><code>    10-03 19:45:41.422: W/System.err(27832): java.lang.IllegalArgumentException: Illegal character in query at index 128: https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=21.21544712,81.32074942&amp;radius=1000&amp;sensor=true&amp;types=food|bar|club&amp;key=something
  10-03 19:45:41.422: W/System.err(27832):    at java.net.URI.create(URI.java:727)
  10-03 19:45:41.422: W/System.err(27832):    at org.apache.http.client.methods.HttpGet.&lt;init&gt;(HttpGet.java:75)
  10-03 19:45:41.422: W/System.err(27832):    at com.tukutane.StartActivity$GetPlaces.doInBackground(StartActivity.java:220)
  10-03 19:45:41.422: W/System.err(27832):    at com.tukutane.StartActivity$GetPlaces.doInBackground(StartActivity.java:1)
  10-03 19:45:41.422: W/System.err(27832):    at android.os.AsyncTask$2.call(AsyncTask.java:287)
  10-03 19:45:41.422: W/System.err(27832):    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
  10-03 19:45:41.422: W/System.err(27832):    at java.util.concurrent.FutureTask.run(FutureTask.java:137)
  10-03 19:45:41.432: W/System.err(27832):    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
  10-03 19:45:41.432: W/System.err(27832):    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
  10-03 19:45:41.432: W/System.err(27832):    at java.lang.Thread.run(Thread.java:856)
  </code></pre>
  
  <p>code:</p>
  
  <pre><code>    // build places query string
                      String placesSearchStr = "https://maps.googleapis.com/maps/api/place/nearbysearch/json?"
                              + "location="
                              + mCurrentLocation.getLatitude()
                              + ","
                              + mCurrentLocation.getLongitude()
                              + "&amp;radius=1000&amp;sensor=true"
                              + "&amp;types=food|bar|club"
                              + "&amp;key=xxxxxxxx";
                      // execute query
                      new GetPlaces().execute(placesSearchStr);
          // Move the camera instantly to User location with a zoom of 12.
          googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(
                  USER_LOCATION, 12));
  
          // Zoom in, animating the camera.
          googleMap.animateCamera(CameraUpdateFactory.zoomTo(10), 2000, null);
  </code></pre>