Code example for ActionBarActivity

Methods: onPause

0
        listView.setEmptyView(txtvStatus);
    } 
 
    @Override 
    protected void onPause() { 
        super.onPause(); 
    } 
 
    @Override 
    protected void onResume() { 
        super.onResume(); 
        if (categories != null) {
            createAdapter(); 
        } else { 
            loadCategories(); 
        } 
    } 
 
    private void createAdapter() { 
        if (categories != null) {
            listAdapter = new ArrayAdapter<String>(this,