Code example for ListFragment

Methods: onPause

0
        chat.start();
    } 
 
    @Override 
    public void onPause() { 
        super.onPause(); 
        chat.stop();
    } 
 
    @Override 
    public void onDestroy() { 
        super.onDestroy(); 
        chat.shutdown();
    } 
 
    public void showError() { 
        Animation animation = loadAnimation(R.anim.slide_in_down);
        errorView.setVisibility(View.VISIBLE);
        errorView.startAnimation(animation);
    }