how can I post data without using NameValuePair?
I want to post String
In JS, I would use:
var separator = String.fromCharCode(0xef, 0xbf, 0xbf);
var postUrl = "PostUrl";
var postData = "3" + separator + "0" + separator + "13"
network.setUnicode(true);
this.reply = network.post(postUrl, postData);
Behold the HTTP Client that comes with Android. In your case, you’ll want to use a
StringEntityas the payload of your POST request.Obviously, you’ll want to do more careful checking for error conditions and suchlike.