I am using DefaultHttpClient to send data to web… To send data m using following code block:
nameValuePairs.add(new BasicNameValuePair(name, value));
httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
but namevaluepairs only take string.. I need to send integer value with this.
Please guide..
Thanks in advance.
Use
Integer.toString(integerValue). For example:Edit, further to the comments below:
And for a float you can use: