Back to project page storm-gen.
The source code is released under:
Apache License
If you think the Android project storm-gen 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.turbomanage.storm.sample.loader; /* w ww .j a v a 2 s . c om*/ import android.content.Context; import com.turbomanage.storm.sample.model.Contact; import com.turbomanage.storm.sample.model.dao.ContactDao; import java.util.List; /** * Created by galex on 11/06/14. */ public class ContactLoader extends AbstractAsyncTaskLoader<List<Contact>> { private ContactDao mContactDao; public ContactLoader(Context context) { super(context); mContactDao = new ContactDao(context); } @Override public List<Contact> loadInBackground() { return mContactDao.listAll(); } }