Code example for Calendar

Methods: getDisplayName

			// .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) {
				// FavstopsActivity is the home screen. 
				if (context.getLocalClassName().equals("FavstopsActivity")) {
					ab.setDisplayOptions(0, ActionBar.DISPLAY_HOME_AS_UP);
Stop searching for code, let great code find you!  Add Codota to your java IDE