Back to project page cnp.
The source code is released under:
MIT License
If you think the Android project cnp listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.urucas.services; /*from w w w . java 2 s .c om*/ /** * @copyright Urucas * @license Copyright (C) 2013. All rights reserved * @version Release: 1.0.0 * @link http://urucas.com * @developers Bruno Alassia, Pamela Prosperi */ import org.json.JSONException; import org.json.JSONObject; import android.util.Log; public class JSONRequestTask extends RequestTask{ public JSONRequestTask(JSONRequestTaskHandler _jrsh) { super(_jrsh); } @Override protected void onPostExecute(String result) { try { Log.i("json result", result); JSONObject response = new JSONObject(result); jrsh.onSuccess(response); } catch (JSONException e) { jrsh.onError(e.getMessage()); } } }