Back to project page Android-API.
The source code is released under:
Apache License
If you think the Android project Android-API 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.clearblade.platform.api.internal; /*w w w . ja va2 s.c om*/ import com.clearblade.platform.api.ClearBladeException; import android.os.AsyncTask; public class DataTask extends AsyncTask<RequestEngine, Void, PlatformResponse> { PlatformCallback _callback; public DataTask(PlatformCallback callback) { _callback = callback; } @Override protected void onPostExecute(PlatformResponse result) { super.onPostExecute(result); if(result.getError()) { Util.logger("Load", "" + result.getData(), true); _callback.error(new ClearBladeException("Call to Save failed:"+result.getData())); } else { _callback.done((String)result.getData()); } } @Override protected void onPreExecute() { super.onPreExecute(); } @Override protected PlatformResponse doInBackground(RequestEngine... params) { return params[0].execute(); } }