Code example for UrlEncodedFormEntity

0
					params.add(new BasicNameValuePair("package_version", mPackageVersion));
					params.add(new BasicNameValuePair("phone_model", Build.MODEL));
					params.add(new BasicNameValuePair("sdk_version", Build.VERSION.RELEASE));
					params.add(new BasicNameValuePair("message", msg));
 
					httpPost.setEntity(new UrlEncodedFormEntity(params, HTTP.UTF_8));
					httpClient.execute(httpPost);
				} 
				catch (Exception e) {
				} 
			} 
		}).start();
	} 
 
	public static void dump(String longMsg) {
		dump(mTag, longMsg, LEVEL_INFO);
	} 
 
	public static void dump(String longMsg, int level) {
		dump(mTag, longMsg, level);
Experience pair programming with AI  Get Codota for Java