Possible Duplicate:
Android: How can I get current opened application name on screen
I am developing small android application.In my application I am displaying list of all install application.Now what I want to do whenever user open other application, check whether that application name present in my list or not.
For this I need to implement a background service or broadcast receiver kind of functionality which continuously listening launch or resume of other application.I know such kind of functionality are considered as malicious activity.But lot of other application like task killer, app security lock doing such thing.
Is there any way to implement such kind of functionality. Need Help...... Thank you....