Code example for Calendar

Methods: getDisplayName

0
			// .detectLeakedClosableObjects() -- API11 
			// .detectActivityLeaks() -- API11 
		} 
 
		public static String getDisplayName(Calendar cal, int field, int style, Locale locale) {
			return cal.getDisplayName(field, style, locale);
		} 
	} 
 
	public static class API11 { 
 
		public static void prepActionBar(Activity context) {
			final ActionBar ab = context.getActionBar();
			if (ab != null) {
				ab.setHomeButtonEnabled(true);
				ab.setTitle(R.string.app_name);
 
				// FavstopsActivity is the home screen. 
				if (context.getLocalClassName().equals("FavstopsActivity")) {
					ab.setDisplayOptions(0, ActionBar.DISPLAY_HOME_AS_UP);
				} else {