Code example for DialogFragment

Methods: onResume

0
    		} 
    	} 
    } 
     
    public void onResume() { 
    	super.onResume(); 
    	conn = NetworkConnection.getInstance();
    	conn.addHandler(mHandler);
    	 
    	if(users != null) {
        	adapter = new UsersAdapter(this);
        	listView.setAdapter(adapter);
    	} 
    } 
     
    @Override 
    public void onPause() { 
    	super.onPause(); 
    	if(conn != null)
    		conn.removeHandler(mHandler);
    }