如何在Android中传递HTTP Post请求中的对象数组?
我想在HTTPPOST请求中传递对象列表,比如驱动程序。而NameValuePair只接受字符串。如何通过HTTP POST请求传递它?试试看如何在Android中传递HTTP Post请求中的对象数组?,android,Android,我想在HTTPPOST请求中传递对象列表,比如驱动程序。而NameValuePair只接受字符串。如何通过HTTP POST请求传递它?试试看 StringEntity ss= new StringEntity(yourObj.toString()); // Set HTTP parameters httpPost.setEntity(se); 我想这会对你有帮助。试试看 StringEntity ss= new StringEntity(yourObj.toS
StringEntity ss= new StringEntity(yourObj.toString());
// Set HTTP parameters
httpPost.setEntity(se);
我想这会对你有帮助。试试看
StringEntity ss= new StringEntity(yourObj.toString());
// Set HTTP parameters
httpPost.setEntity(se);
我认为这会对你有所帮助。我认为这篇文章会对你有所帮助
他们建议使用JSON或XML,我想这篇文章会对你有所帮助 他们建议使用JSON或XML