Code example for Cursor

Methods: closeisClosed

0
 
        if (isStarted()) {
            super.deliverResult(cursor);
        } 
 
        if (oldCursor != null && oldCursor != cursor && !oldCursor.isClosed()) {
            oldCursor.close();
        } 
    } 
 
    public OrmliteCursorLoader(Context context, AndroidBaseDaoImpl<T,?> dao, PreparedQuery<T> query) {
        super(context);
        mObserver = new ForceLoadContentObserver();
        mDao = dao;
        mQuery = query;
    } 
 
    @Override 
    protected void onStartLoading() { 
        if (mCursor != null) {
            deliverResult(mCursor);