Code example for ListFragment

Methods: getActivity, onPause

0
    /** 
     * @see android.app.Activity#onPause() 
     */ 
    @Override 
    public void onPause() { 
        super.onPause(); 
        getActivity().unregisterReceiver(receiver);
    } 
 
    /** 
     * @see android.app.Activity#onResume() 
     */ 
    @Override 
    public void onResume() { 
        super.onResume(); 
        refresh(); 
        getActivity().registerReceiver(receiver, filter);
    } 
 
    /** 
Stop searching for code, let great code find you!  Add Codota to your java IDE