How to convert this json clsError and userId values:
String temp = "{"clsError":{"ErrorCode":110,"ErrorDescription":" Request Added"},"UserID":36}"
And pass them as parameters:
clsError errorObject=new clsError(UserID,clsError);
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First use this: http://developer.android.com/reference/org/json/JSONObject.html#JSONObject(java.lang.String)
that is basically it. but i was not sure about the second parameter of the clsError constructor. i just assumed it is a string in my example 🙂 but this should give you the idea how to do this. and you will have to surround that with try/catch. eclipse will tell you how 🙂