Login Android App using JSON

view story

http://stackoverflow.com – I am working on an android application in which the data is fetched through JSONs using the web-service. Following is the JSON string that i am using to login the app.The parameters,wsfunction,syntax all are checked and found to be correct. MainActivity.java String loginjson = "{\"userDetails\":[{\"username\":" +"\"" +username.getText().toString().trim() +"\",\"password\":" +"\"" +password.getText().toString() +"\",\"ipaddress\":" +"\"" +Constants.ipaddress +"\",\"lastaccess\":\"0\"}],\"wsfunction\":\"user_authentication\"}"; Constants.sercall.servercall(loginjson); Also here is co (HowTos)