Mike
Mike

Reputation: 1

Can I statically find/access an android view outside of an application?

I am connecting the phone to adb and was wondering if there was a way to access a view outside of an application.

Thanks.

(Similar to Hierarchy Viewer, but being able to look at the data associated with the View [the content that one might find in an XML])

Upvotes: 0

Views: 115

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006809

I am connecting the phone to adb and was wondering if there was a way to access a view outside of an application.

Romain Guy just released his ViewServer within the past couple of hours, which allows Hierarchy View to examine UIs on a device the way it can examine UIs on an emulator. However, this requires adding code to your application -- as @lobner indicates, this is a serious security issue, which is why the platform does not expose this sort of information by default.

Upvotes: 1

Related Questions