Code example for ListFragment

Methods: getActivity, onPause

0
        public void onLoaderReset(Loader<List<TwitterStatus>> data) {
        } 
 
        @Override 
        public void onPause() { 
            FragmentActivity activity = getActivity();
            activity.getSupportLoaderManager().destroyLoader(0);
            super.onPause(); 
        } 
 
        @Override 
        public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
        } 
    } 
}