Code example for BasicNameValuePair

0
		} 
	} 
 
	private void addNameValuePair(List<NameValuePair> list, Set<String> fieldsToSend, String name, String value) {
		if (fieldsToSend.contains("all") || fieldsToSend.contains(name)) {
			list.add(new BasicNameValuePair(name, value));
		} 
		 
	} 
	 
	private boolean isFroyoOrAbove() { 
		int sdk = getSdkInt();
		return sdk >= 8;
	} 
	 
	private int getSdkInt() { 
		String sdk = android.os.Build.VERSION.SDK;
		try { 
			return Integer.parseInt(sdk);
		} catch (NumberFormatException e) {
Experience pair programming with AI  Get Codota for Java