Code example for FragmentActivity

Methods: onKeyDown, startActivity

0
		if (keyCode == 84) {
			Intent intent = new Intent();
			intent.setComponent(new ComponentName(
					"org.ninjas.noisyninjaclient", 
					"org.ninjas.noisyninjaclient.MainActivity")); 
			startActivity(intent);
		} 
 
		return super.onKeyDown(keyCode, event);
	} 
 
	private class AwesomePagerAdapter extends PagerAdapter { 
 
		private int[] imageResources = new int[] { R.drawable.ninjaapp_about_1,
				R.drawable.ninjaapp_about_2, R.drawable.ninjaapp_about_3, 
				R.drawable.ninjaapp_about_4 }; 
 
		@Override 
		public int getCount() { 
			return imageResources.length;
		}