Listener when an application is started?
问题 Is there any way to implement a listener which is notified when any application is started?Not my application any application is started or stopped? If not possible is there a way to find out if a particular application has started or stopped i,e a listener when facebook app(for example) is started or stopped? 回答1: use a STICKY Service that tracks all of the running application @Override public int onStartCommand(Intent intent, int flags, int startId) { Timer timer = new Timer(); timer