Code example for LoaderManager

Methods: destroyLoader

0
    public void closeCursor(){ 
        if(cursor != null){
            cursor.close();
        } 
    } 
 
    public void closeScreenCursor(){ 
        closeCursor(); 
        LoaderManager lm = mActivity.getLoaderManager();
        lm.destroyLoader(LOADER_SCREEN);
    } 
 
    public void onClick(View v) {
        // TODO Auto-generated method stub 
        ImageView image = (ImageView)v.findViewById(R.id.quick_navigation_thumb);
        long id = (Long)image.getTag(R.id.quick_navigation_thumb);
        String url = (String)image.getTag(R.id.quick_navigation_line);
        String name = (String)image.getTag(R.id.quick_navigation_title);
        if(url!=null && url.length()!=0){
          //  Tab tab = ((UiController)mController).openTab(url, false, true, false, ((UiController)mController).getCurrentTab()); 
            Tab tab = ((UiController)mController).openTab(url, false, true, false);