开发者

How can I obtain the current View object on Android OS?

开发者 https://www.devze.com 2023-01-27 02:03 出处:网络
I need to somehow obtain the top level View object of 开发者_C百科the current application being run. My program is a service that needs to monitor the current application (another application of Activ

I need to somehow obtain the top level View object of 开发者_C百科the current application being run. My program is a service that needs to monitor the current application (another application of Activity type) in some way, in order to get its View hierarchy. Any suggestions?


You can't do this. For security reasons each application runs as it's own user id and has privacy from the others.

0

精彩评论

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