2

I need to get a link to a running Activity of third-party application. Can anyone help me? I analyzed the android source code and i know that any activity has a PhoneWindow instance. Maybe this instance will be stored somewhere after creation... I need to get access to a view of Activity that is running at this moment. I tried to get access to the WindowManagerGlobal class to the mViews field but it seems like this field contain just views of my application because i think WindowsManager was created with my application context. Maybe there is a way to get WindowManager of other application or maybe i need to get access to PackageManagerService or other Service/Manager...Thanks for your help!

user1580938
  • 23
  • 1
  • 2
  • "Can anyone help me?" -- you will have better luck if you explained, in detail, what "get a link to a running Activity of third-party application" means. "I need to get access to a view of Activity that is running at this moment" -- that is not possible. That `View` does not exist in your process, so you cannot "get access" to it directly. – CommonsWare Aug 13 '16 at 10:36

0 Answers0