Back to project page BCC.
The source code is released under:
MIT License
If you think the Android project BCC 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.bcc.util; //w ww .j a va 2 s .c o m import java.util.ArrayList; import java.util.List; import android.content.Context; import com.sdsu.bcc.BCCConstants; import com.sdsu.bcc.database.data.CardInformation; import com.sdsu.bcc.database.data.FilesInformation; import com.sdsu.bcc.database.impl.BCCDataStore; import com.sdsu.bcc.database.impl.FilesDataStore; public class Facade implements BCCConstants { public List<FilesInformation> getFilesList(Context context) { try { FilesDataStore store = new FilesDataStore(context,true); return store.getRecords(null); } catch (Exception e) { e.printStackTrace(); return new ArrayList<FilesInformation>(); } } public List<CardInformation> getCardList(Context context) { try { BCCDataStore store = new BCCDataStore(context,true); return store.getRecords(null); } catch (Exception e) { e.printStackTrace(); return new ArrayList<CardInformation>(); } } }