How to send notification when any application moves from background to foreground and vice versa in Android
<p>Is there any way to know when any application comes from background to foreground and vice-verse ? I need some kind of mechanism for my own app to know that any application installed in device went from background to foreground (Main Screen) or went to background to foreground . </p>
