「json」という名前のjson変数を、Androidデバイスを介してアドレス http://otu-git.dyndns.ws/pvm_srv/serv.phpに送信する必要があります。現在のコードは次のとおりです。
JSONObject jsn = new JSONObject();
JSONObject json = new JSONObject();
JSONObject header = new JSONObject();
try {
header.put("txtUser", "123");
header.put("md5Passwd", "123");
header.put("fun", "validarUsuario");
jsn.put("USR", header);
json.put("json", jsn);
se = new StringEntity(json.toString());
} catch (Exception e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
try {
params = new ArrayList<NameValuePair>();
params.add(new BasicNameValuePair("json",json.toString()));
httppost.setEntity(new UrlEncodedFormEntity(params));
Log.i("dhiraj",params.toString());
////////////////////////////////////////////////////////////
HttpResponse response = httpclient.execute(httppost);
entity = response.getEntity();
しかし、サーバーから空の Json Post 応答が返されます。