Java tutorial
//package com.java2s; import android.text.format.Time; public class Main { private static boolean isTomorrow(long when) { Time time = new Time(); time.set(when); int thenYear = time.year; int thenMonth = time.month; int thenMonthDay = time.monthDay; thenMonthDay--; time.setToNow(); return (thenYear == time.year) && (thenMonth == time.month) && (thenMonthDay == time.monthDay); } }