0

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....

Community
  • 1
  • 1
nilkash
  • 7,408
  • 32
  • 99
  • 176
  • check this http://qtcstation.com/2011/01/getting-info-about-your-currently-running-activities/ – Ram kiran Pachigolla Aug 13 '12 at 05:44
  • Thank you Eric and Ram Kiran for quick reply.. I tried this, Its working fine it gives me all running task info. But What I want to do is When user open any other application, in background get the name of that application or package-name (continuously checking not only when I open my application). – nilkash Aug 13 '12 at 06:06

0 Answers0