Code example for Time

Methods: settoMillis

0
	 
	private static long nextNoon() { 
		Time now = new Time();
		now.setToNow();
		 
		Time noon = new Time();
		 
		if (now.hour >= 12)
			noon.set(0, 0, 12, now.monthDay + 1, now.month, now.year);
		else 
			noon.set(0, 0, 12, now.monthDay    , now.month, now.year);
		 
		return noon.toMillis(false);
	} 
	 
	private static boolean singleEnabled(Context context) {
		return PreferenceManager.getDefaultSharedPreferences(context).getBoolean(ChristmasPreferences.SINGLE_ENABLED_KEY, ChristmasPreferences.SINGLE_ENABLED_DEFAULT);
	} 
	 
	private static boolean recurringEnabled(Context context) {
Contextual code suggestions in your IDE  Get Codota for Java