Back to project page reflect-app.
The source code is released under:
Apache License
If you think the Android project reflect-app 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.pontydysgu.webio; // w w w.j a v a 2s. c om import android.os.AsyncTask; import android.util.Log; import com.pontydysgu.data.LoginData; import com.pontydysgu.data.StackArray; public class RetrieveStacksTask extends AsyncTask<String, Void, StackArray> { private Exception exception; private RetrieveStacksCallback callback; private LoginData logindata; public RetrieveStacksTask(RetrieveStacksCallback callback, LoginData logindata) { this.callback = callback; this.logindata = logindata; } protected StackArray doInBackground(String... urls) { try { PontyService service = new PontyService(); service.logindata=this.logindata; return service.getUserStacks(); } catch (Exception e) { Log.e("RetrieveStacksTask", "Error", e); this.exception = e; return null; } } protected void onPostExecute(StackArray stackArray) { this.callback.onStacksRecieved(stackArray); } }