Monday, September 12, 2011

[android-developers] How to send Post data with JSONString

Hi,

I would like to send username and password with SERVICE_URL. do any one know how to send it, I am getting username and password from prefs. here is my code at the moment.

String SERVICE_URL = "http://10.0.2.2/php_to_json.php";
String s = execHttpRequest(SERVICE_URL);
final String[] items2 = getTheTimeFromJSONString(s);

--
Atif 

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate