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 Please refer to the documentation in ViewServer.java for more info.