Code example for ToggleButton

Methods: setChecked

0
	 
	private void setStoppedState( ) { 
		System.getNMap().kill(); 
		mTraceProgress.setVisibility( View.INVISIBLE );
		mRunning = false;
		mTraceToggleButton.setChecked( false );       	
	} 
	 
	private void setStartedState( ) { 
		mListAdapter.clear();
		 
		System.getNMap().trace( System.getCurrentTarget(), mTraceReceiver ).start();
		 
		mRunning = true;
	} 
	 
	@Override 
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);    
                 
        mTraceToggleButton = ( ToggleButton )findViewById( R.id.traceToggleButton );