Kayne
Kayne

Reputation: 11

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

I need to somehow obtain the top level View object of 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?

Upvotes: 1

Views: 381

Answers (1)

Chris Stratton
Chris Stratton

Reputation: 40387

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

Upvotes: 2

Related Questions