Code example for ToggleButton

Methods: setOnClickListener

0
	/** 
	 * Adds all Listeners. 
	 */ 
	private void initListeners() 
	{ 
		startButton.setOnClickListener(new StartButtonListener());
	} 
 
 
	/** 
	 * Is called when the users clicks the "configure address" button, changes 
	 * Activity to the MapView. 
	 *  
	 * @param view 
	 */ 
	public void handleShowMap(View view)
	{ 
		if (!networkCheck.isOnline())
		{ 
			Toast.makeText(this, R.string.map_info_no_internet, Toast.LENGTH_SHORT).show();
		}