不能继承OrmLiteBaseActivity时,这样获取getHelper

private DatabaseHelper databaseHelper = null;
public DatabaseHelper getHelper() {    
     if (databaseHelper == null) {    
            databaseHelper = OpenHelperManager.getHelper(getContext(), DatabaseHelper.class);    
     }
     return databaseHelper;    
}

  

posted @ 2013-12-12 15:53  传说之美(libill)  阅读(389)  评论(0编辑  收藏  举报