开发者

How to use public static final String SET_ACTIVITY_WATCHER permission in android?

开发者 https://www.devze.com 2023-04-06 13:17 出处:网络
I want to know what are the other activities launched when my service 开发者_如何学Gois running background .

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号