Code example for ListFragment

Methods: onDestroy

0
        } 
    } 
 
    @Override 
    public void onDestroy() { 
        super.onDestroy(); 
        lv = null;
        try{ 
            Method m = PreferenceManager.class.getDeclaredMethod("dispatchActivityDestroy");
            m.setAccessible(true);
            m.invoke(mPreferenceManager);
           }catch(Exception e){
               e.printStackTrace();
           } 
    } 
 
    @Override 
    public void onSaveInstanceState(Bundle outState) {
        outState.putInt("xml", xmlId);
        super.onSaveInstanceState(outState);