How to use public static final String SET_ACTIVITY_WATCHER permission in android?
I want to know what are the other activities launched when my service 开发者_如何学Gois running background . If there is a new activity launched , then my service should know it . How do i know ? Can i use SET_ACTIVITY_WATCHER permission ? How can i use it . Thanks for all the help .
as per the documentation it seems it is only for debug
mode.
UPDATE
as per this THREAD your listed permission is a system which the android team forgot to cleanup
in the release and it is just lying there.
EIDT
i guess polling
(check in intervals) is the only way left for you. check this thread. you may be able to use the ActivityManager to find the running apps.
精彩评论