Accesing Google Places API in android
<p>Hi Guys I am working on an application which uses google places API.</p>

<p>I got API key for my application,but the problem is I am getting <code>ZERO_RESULTS</code> as a response from the sever.</p>

<p>Here is my code I used <code>DefaultHttpClient</code> to establish the http connection. Can anyone tell me what is the problem? 
Please help I am stuck here.</p>

<pre><code>public class Splash extends Activity{
     private  String keystring="";
     //This is my request url 
    String requesturl="https://maps.googleapis.com/maps/api/place/search/json?" + 
      "location=17.739290150000002,83.3071201&amp;radius=6000&amp;" +
      "types=hospital&amp;sensor=false&amp;key=";
     private static byte[] key; 
     String signaturegot;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onCreate(savedInstanceState);
          /*
            Here I am using default http client to establish 
            the connection for the request url
           */

            HttpClient client=new DefaultHttpClient();
            StringBuilder builder=new StringBuilder(requesturl);
            builder.append(URLEncoder.encode(keystring));
            HttpPost post=new HttpPost(requesturl);
            try {
                HttpResponse response=client.execute(post);
                HttpEntity entity=response.getEntity();
                if (entity != null) {
                    InputStream is = entity.getContent();
                    String val = StaticUtils.convertStreamToString(is);
                Log.e("",val);
                }
            } catch (ClientProtocolException e) {   
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
            }
    }



Here is the response from the server
{
   "html_attributions" : [],
   "results" : [],
   "status" : "ZERO_RESULTS"
}
</code></pre>
