Code example for HttpPost

Methods: setEntity

0
				String path = ((FrameworkAndroidApp) this.getApplication()).getpath();
				String url = "/putfuncuploader.php";
				String uri = http.concat(controlIP);
				String postto1 = uri.concat(path);
				String postto = postto1.concat(url);
				HttpPost httppost = new HttpPost(postto);
				httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
				httpclient.execute(httppost);
				//HttpEntity entity = response.getEntity(); 
				//InputStream input = entity.getContent(); 
				}catch(Exception e){
 
				e.printStackTrace();
 
				} 
			} 
	} 
	 
	@Override 
	public IBinder onBind(Intent arg0) {
		// TODO Auto-generated method stub