You can use the time libraries, depending on your minimum API level, to get the times. You can look closer into the documentation to get a better idea of how to use it. Both the code snippets I have below are very similar.
http://developer.android.com/reference/android/text/format/Time.html
I would try using these two functions (copied and pasted from Android Documentation)
public boolean after (Time that)
//Added in API level 3
//Returns true if the time represented by this Time object occurs after the given time.
//Parameters --
//that a given Time object to compare against
//Returns --
//true if this time is greater than the given time
Similar to previous statement
public boolean before (Time that)
//Added in API level 3
//Return true if the time represented by this Time object occurs before the given time.
//Returns --
//true if this time is less than the given time
1
solved How to reset an integer if the user not opening the app in the morning? ANDROID [closed]