In service how to run time comparison loop repeatedly untill alarm time is equal to current time
<p>In my project i am storing alarm time as string in database and in service class i am using time object for getting the alarm time from db and splitting the time based on(:)colon same is done with current time.</p>

<p>I am using .equals for comparing both time in an if condition in a service class on the (on start command) method in service class it is not checking the if condition repeatedly how do can i write the code can any one show an example code </p>
