rest - Restlet client different responses using android -
rest - Restlet client different responses using android -
i have code restful resource
public string loadresourcestring() { reference ref = new reference("http://192.0.0.1:8080/op/op2"); clientresource resource = new clientresource(ref); form paramspost = new form(); paramspost.add("id", "abcd"); paramspost.add("code", "2"); representation representation = paramspost.getwebrepresentation(); representation.setcharacterset(characterset.utf_8); representation result = resource.post(representation); string sresult = ""; seek { sresult = result.gettext(); } grab (ioexception e) { homecoming ("ioexception "); } homecoming ("return \n" + sresult + "\n"); }
i have code attached button , works ok lot of times result null. don't understand reason.
anybody knowledge related restlet framework can help me?
android rest restlet
Comments
Post a Comment