Code example for LoaderManager

Methods: restartLoader

0
 
                        if (schemasActive(data)) {
                            mSchemaStatusListener.onSchemasActive();
                        } else { 
                            // they want to wait until the schemas are active 
                            mContext.getLoaderManager().restartLoader(mLoaderID, null, SchemaManager.SchemaLoader.this);
                        } 
                    } 
 
                    @Override 
                    public boolean deliverSelfNotifications() { 
                        return true; 
                    } 
 
                    @Override 
                    public void onChange(boolean selfChange, Uri uri) {
                        super.onChange(selfChange, uri);
                    } 
                }); 
            } else { 
                mSchemaStatusListener.onSchemasActive();