I'm letting users retrieve their forgotten password by webservice. all are function is performing json
give success output but after this debugger is not going in try (if else) condition...
my forgetpass response:
{
status: "Success"
msg: "Password has been sent your Email_id , Please check it.."
}
try/catch:
params.add(new BasicNameValuePair("email",Email));
JSONObject json = jsonParser.makeHttpRequest(url,"POST", params);
Log.d("Create Response", json.toString());
try{
String status=json.getString(TAG_SUCCESS);
if(status=="TAG_SUCCESS"){
Toast.makeText(ForgetPassWord.this,"Password has been sent your Email_id , Please check it..", Toast.LENGTH_LONG).show();
finish();
}else{
Toast.makeText(ForgetPassWord.this,"Please Enter Correct E-Mail", Toast.LENGTH_LONG).show();
}
}catch(JSONException e) {
e.printStackTrace();
}
return null;