I wanna do just like Alarm in time , but as I said in the question I wanna make smth like this :( if time " now " = 5:50 pm) do // Something i tried this but it's take all my battery life time : what I've Done is Set int Hours and int minutes and then
enter code here
while (true){
if (Hours==x &minutes==y )
//do somethin
}
so any better way ?