Code example for ListFragment

Methods: onDestroyView

0
        return (ChatStreamView) super.getListView(); 
    } 
 
    @Override 
    public void onDestroyView() { 
        super.onDestroyView(); 
        chat.setProgressListener(null);
        chat.setMessageConsumer(null);
    } 
 
    @Override 
    public void onResume() { 
        super.onResume(); 
        chat.start();
    } 
 
    @Override 
    public void onPause() { 
        super.onPause(); 
        chat.stop();
    }