Code example for FragmentActivity

Methods: findViewById, getTitle

0
	 * @return void 
	 */ 
 
	public void setTitleFromActivityLabel (int textViewId)
	{ 
	    TextView tv = (TextView) findViewById (textViewId);
	    if (tv != null) tv.setText (getTitle ());
	} // end setTitleText 
 
	/** 
	 * Show a string on the screen via Toast. 
	 *  
	 * @param msg String 
	 * @return void 
	 */ 
 
	public void toast (String msg)
	{ 
	    Toast.makeText (getApplicationContext(), msg, Toast.LENGTH_SHORT).show ();
	} // end toast