Code example for SQLiteQuery

Methods: toString

0
    private static final int DATABASE_VERSION = 1;
 
    private static final CursorFactory sCursorFactory = new CursorFactory() {
        @Override 
        public Cursor newCursor(SQLiteDatabase db, SQLiteCursorDriver masterQuery, String editTable, SQLiteQuery query) { 
            Log.d(TAG, query.toString()); 
            return new SQLiteCursor(db, masterQuery, editTable, query); 
        } 
    }; 
 
    protected interface Tables { 
        String SUBSCRIBERS = "subscribers";
        String BILLS = "bills";
        String TABS = "tabs";
        String TAB_TRANSACTIONS = "tab_transactions";
        String PLANS = "plans";
        String ADDONS = "addons";
        String AIRTIMES = "airtimes";
        String USAGES = "usages";
    }