Back to project page GalDroid.
The source code is released under:
GNU General Public License
If you think the Android project GalDroid 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 de.raptor2101.GalDroid.WebGallery.Gallery3.Tasks; /*from w w w . ja va 2 s.c o m*/ import java.io.IOException; import org.apache.http.client.ClientProtocolException; import org.json.JSONArray; import org.json.JSONException; import de.raptor2101.GalDroid.WebGallery.Gallery3.RestCall; import android.os.AsyncTask; public class JSONArrayLoaderTask extends AsyncTask<RestCall, Void, JSONArray> { @Override protected JSONArray doInBackground(RestCall... params) { JSONArray jsonArray = null; try { RestCall restCall = params[0]; jsonArray = restCall.loadJSONArray(); } catch (ClientProtocolException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (JSONException e) { // TODO Auto-generated catch block e.printStackTrace(); } return jsonArray; } }