title: Pushing at Android
body: <p>I've made A GCM Application.</p>
  
  <p>I made web sever by Node.js and I checked my POST is working well by using Postman.</p>
  
  <p>So, I am making an app that when button clicked, it posts so GCM Message comes to my device.</p>
  
  <p>and this is my post code.</p>
  
  <pre><code>    HttpClient httpclient = new DefaultHttpClient();
      HttpPost httppost = new HttpPost(SERVER_URL+"/push");
  
      try {
          // Add your data
          List&lt;NameValuePair&gt; nameValuePairs = new ArrayList&lt;NameValuePair&gt;();
          //nameValuePairs.add(new BasicNameValuePair("id", "12345"));
          //nameValuePairs.add(new BasicNameValuePair("stringdata", "AndDev is Cool!"));
          httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
  
          // Execute HTTP Post Request
          HttpResponse response = httpclient.execute(httppost);
  
      } catch (ClientProtocolException e) {
          // TODO Auto-generated catch block
      } catch (IOException e) {
          // TODO Auto-generated catch block
          Log.v("11111", "11111");
      }
  </code></pre>
  
  <p>I don't have any params with my POST so nameValueParams has nothing.</p>
  
  <p>But in my log cat, it shows log.v("11111","11111");</p>
  
  <p>there is an IOException, what is the problem? My manifest includes INTERNET PERMISSION ALSO.</p>
  
  <p>Every example code has that structure but it goes to IOException.</p>