GitXplorerGitXplorer
r

ViewServer

public
2488 stars
582 forks
0 issues

Commits

List of commits on branch master.
Verified
269059b4e7377b8861e20444502f6adada0d0943

Update README.md

rromainguy committed 4 years ago
Unverified
017c01cd512cac3ec054d9eee05fc48c5a9d2def

Merge pull request #30 from desertjim/patch-1

rromainguy committed 9 years ago
Unverified
10c563a0b6fe769451eeca12d182092148f85ec8

Update README.md

ddesertjim committed 9 years ago
Unverified
062af9753e57108ded0c4242cb77d1124610b4fe

Rename file extension

ddesertjim committed 9 years ago
Unverified
9ba0561c583f099cf62431049eceadff4c9f8145

Adding Quick Start Info

ddesertjim committed 9 years ago
Unverified
a3b00055a8903527f25b3c19c372e50053c2b979

Merge pull request #27 from pyricau/py/mFocusedWindow_leak

rromainguy committed 10 years ago

README

The README file for this repository.

NOTE: This library is not necessary anymore. Newer versions of Android provide a new tool called Layout Inspector that should be used instead.

ViewServer is a simple class you can use in your Android application to use the HierarchyViewer inspection tool.

ViewServer requires the Android SDK r12 or higher. http://developer.android.com/sdk/index.html

Quick Start

If you do need this library then follow these directions:

  • Include the ViewServer library(easy directions found here)
  • 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:
public class MyActivity extends Activity {
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // Set content view, etc.
        ViewServer.get(this).addWindow(this);
    }

    public void onDestroy() {
        super.onDestroy();
        ViewServer.get(this).removeWindow(this);
    }

    public void onResume() {
        super.onResume();
        ViewServer.get(this).setFocusedWindow(this);
    }
}

Please refer to the documentation in ViewServer.java for more info.