Code example for FragmentActivity

Methods: finish, getApplicationContext, startActivity

0
	 * Method called when the location button is clicked 
	 * Goes to MapsActivity 
	 * @param LocationButton 
	 */ 
	public void toMap (View LocationButton) {
		Intent next = new Intent(getApplicationContext(), MapsActivity.class);
		finish(); 
		startActivity(next);
	} 
}