I'm trying to connect to server through a web-service. In this web service, i'm passing list of namevaluepairs. Now problem is namevaluepair only accepts (String,String) parameters. Where as my server expects a double value. So I can not convert my double to string and pass it ( as server would see as a string and will throw a 'Improper format' Error.
List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();
nameValuePairs.add(new BasicNameValuePair("Name", mydoublevalue));
JSONArray jsonobj = jsonParser.makeHttpRequest_array(url,type, nameValuePairs);
Is there any way out?. or do I have to change server's double type to string so that server would expect string instead of double?