android - How to know that my app is in foreground on screen unlock -
every-time want show add screen after screen unlock on if application in running sate mean foreground (user uses it). done through
"user_present permission , receiver"
its working fine on screen unlock. problem shows me add screen. either app in foreground(on) or in background(off).
the thing can think of have broadcast receiver screen unlock event (details @ activity handle when screen unlocked) , once broadcast received opens screen want.
Comments
Post a Comment