Wish Library-Wrapper to get an Viewserver (helps to debug and inspect apps))

DonManfred

Expert
Licensed User
Longtime User
I have attached an java-library which solves the problem on newer androidversions where the android-viewserver no more is available.

In Java-Project this lib could be included to get an viewserver integrated in an app. I think we "just" need a wrapperlib for this so we then can include it within a b4a app.
 

Attachments

  • ViewServer-master.zip
    71.5 KB · Views: 252

warwound

Expert
Licensed User
Longtime User
Look at the source code comments.
This is part of the main class comment:
For security reasons, HierarchyViewer does not work on production builds (for instance phones bought in store.)

Doesn't sound very useful after reading that...

Martin.
 

DonManfred

Expert
Licensed User
Longtime User
Yes. But THIS library is the solution to get this working again...

This class can be used to enable the use of HierarchyViewer inside an
application. HierarchyViewer is an Android SDK tool that can be used
to inspect and debug the user interface of running applications. For
security reasons, HierarchyViewer does not work on production builds
(for instance phones bought in store.) By using this class, you can
make HierarchyViewer work on any device.
You must be very careful
however to only enable HierarchyViewer when debugging your
application.

To use this view server, your application must require the INTERNET
permission.

The recommended way to use this API is to register activities when
they are created, and to unregister them when they get destroyed:
 
Last edited:
Top