Code example for FileEntity

0
//	    Log.i("SLATEd", res); 
		 
//		HttpClient http = AndroidHttpClient.newInstance("SLATEd"); 
		HttpClient http = new DefaultHttpClient();
		HttpPost method = new HttpPost(URL);
		method.setEntity(new FileEntity(new File(getFilesDir().toString()+"/SLATEd.log"), "text/plain"));
		HttpResponse response = http.execute(method);
		Log.i("SLATEd", "Server Response: "+response.toString());
		 
} 
	 
	private boolean isConnected() throws IOException{ 
		java.net.URL slateSrv = new java.net.URL(URL);
		URLConnection conn = slateSrv.openConnection();
		conn.setConnectTimeout(20000);
		conn.connect();
		Log.i("SLATEd", "Checking Server Status......");
		return true; 
	};