I wanna make smth like this :( if time " now " = 5:50 pm) do // Somthing Android Studio : <p>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 </p>

<pre><code>enter code here
while (true){
if (Hours==x &amp;minutes==y )
//do somethin

}
so any better way ?
</code></pre>
