Code example for ListFragment

Methods: onPause

0
        return inflater.inflate(R.layout.user_list_fragment, container, false);
    } 
 
    @Override 
    public void onPause() { 
        super.onPause(); 
        GroupAPIEngine.getSharedEngine().removeDelegate(this);
    } 
 
    @Override 
    public void onResume() { 
        super.onResume(); 
        onEngineDidLoadUsers(); 
        GroupAPIEngine.getSharedEngine().addDelegate(this);
        GroupAPIEngine.getSharedEngine().fetchPosts(); 
    } 
 
    @Override 
    public void onListItemClick(ListView l, View v, int position, long id) {
        super.onListItemClick(l, v, position, id);