Back to project page droidcon-android-espresso.
The source code is released under:
Apache License
If you think the Android project droidcon-android-espresso 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.xrigau.droidcon.espresso.loader; /*from w ww . ja va 2 s . c o m*/ import android.content.AsyncTaskLoader; import android.content.Context; import com.xrigau.droidcon.core.model.PostList; import com.xrigau.droidcon.core.task.NewsTask; import com.xrigau.droidcon.core.task.TaskExecutor; import com.xrigau.droidcon.espresso.BuildConfig; public class PostsTaskLoader extends AsyncTaskLoader<PostList> { public PostsTaskLoader(Context context) { super(context); } @Override public PostList loadInBackground() { return new TaskExecutor(BuildConfig.HTTP_CLIENT).execute(new NewsTask()); } }