Code example for LoaderManager

Methods: restartLoader

0
        } 
 
        @Override 
        public void onTextChanged(CharSequence s, int start, int before, int count) { 
            query = s.toString(); 
            getLoaderManager().restartLoader(SEARCH_LOADER, null, MusicSearchActivity.this); 
        } 
 
        @Override 
        public void afterTextChanged(Editable s) { 
        } 
    }; 
 
    @Override 
    public Loader<Cursor> onCreateLoader(int id, Bundle args) {
        switch (id) {
            case ALBUM_LOADER:
                return new CursorLoader(this,
                        ALBUM_URI, ALBUM_PROJECTION,
                        null , null, 
Contextual code suggestions in your IDE  Get Codota for Java