romainguy / viewserver Goto Github PK
View Code? Open in Web Editor NEWLocal server for Android's HierarchyViewer
Local server for Android's HierarchyViewer
Here is my crash stack trace
11-21 16:34:46.999: E/AndroidRuntime(8694): Caused by: java.util.ConcurrentModificationException
11-21 16:34:46.999: E/AndroidRuntime(8694): at java.util.AbstractList$SimpleListIterator.next(AbstractList.java:64)
11-21 16:34:46.999: E/AndroidRuntime(8694): at com.qad.debug.ViewServer.fireWindowsChangedEvent(ViewServer.java:401)
11-21 16:34:46.999: E/AndroidRuntime(8694): at com.qad.debug.ViewServer.addWindow(ViewServer.java:307)
11-21 16:34:46.999: E/AndroidRuntime(8694): at com.qad.debug.ViewServer.addWindow(ViewServer.java:277)
Sometimes it happened when I do this:
Start my App by using eclipse's Run command,open hierarchy Viewer and see my App.
Close my App by using Back.(Just empty app's activity stack,the process is still alive).
Restart myApp(start MainActivity),and then cause crash.
Dear developer:
I have added this project to my gradle parts follow your guidance , but it doesn't work !!! is there any other process need i do ??
It looks as if TextViews are exported as images / bitmap layers to PhotoShop. This makes it difficult to work with an export after.
It would be great if a TextView could be exported as a text layer, so that it remains editable in PS.
Is it normal that the data which are provided are without any time measurements?
Everything else seems to work.
I see errors like "[2014-05-15 13:35:57 - hierarchyviewer]Unable to get view server protocol version from device 07213c14" when trying to connect Monitor's hierarchy viewer to an app running this view server.
(I am able to connect to the app with the standalone hierarchyviewer, but I get that deprecation notice and it's a little buggy.)
Open ViewServerActivity,then see ViewServerActivity in hierarchyViewer.
Open My App(wrap ViewServer),hierarchyViewer unable to display it.
Close ViewServerActivity is unUse.
I can not see my App in hierarchyViewer until I kill ViewServerActivity.
My device is Samsung P1000,thanks for help
Do You plan to put it in some repository?
Which license is this?
..and that's the error log:
FAILURE: Build failed with an exception.
Where:
Build file '~/ViewServer/viewserver/build.gradle' line: 7
What went wrong:
A problem occurred evaluating project ':viewserver'.
Could not create plugin of type 'LibraryPlugin'.
Hi,When i add ViewServer to my Activity,it log out such a error
01-19 05:50:47.502: W/ViewServer(8005): Starting ServerSocket error:
01-19 05:50:47.502: W/ViewServer(8005): java.net.BindException: Cannot assign requested address
PS:When i open the activity,the hierarchyviewer had opened.well,when i close the hierarchyviewer ,it seems ok.
Otherwise it's impossible to reference the classes from this project without copying source files.
That's because the ADT refuse to DEX any class files from Eclipse project references to other Android projects, unless they're themselves declared as Android library projects. A mere reference to a standard Android project will create a dependency on that project's APK, not its class files.
StrictMode throws a NetworkOnMainThreadException
when running on Honeycomb, crashing the application.
Stack trace
Caused by: android.os.NetworkOnMainThreadException
android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1077)
java.net.InetAddress.lookupHostByName(InetAddress.java:477)
java.net.InetAddress.getLocalHost(InetAddress.java:445)
com.android.debug.hv.ViewServer.start(ViewServer.java:190)
com.android.debug.hv.ViewServer.get(ViewServer.java:147)
The ViewServer class isn't working on my device. I keep getting the following error:
12:16:52 E/ViewServerDevice: Unable to debug device: lge-nexus_4-04848005ded98f1f
12:16:52 E/hierarchyviewer: Missing forwarded port for 04848005ded98f1f
12:16:52 E/hierarchyviewer: Unable to get view server version from device 04848005ded98f1f
12:16:52 E/hierarchyviewer: Missing forwarded port for 04848005ded98f1f
12:16:52 E/hierarchyviewer: Unable to get view server protocol version from device 04848005ded98f1f
Hi!
Javadoc is pretty hard to read in the plain text java file. I would like to add a little guide to the README.md file to help other developers to get started quickly. Would you accept a Pull Request for this?
It would be really great to get this published on Maven so we can include it like we do most libraries these days.
https://github.com/romainguy/ViewServer/blob/master/src/com/android/debug/hv/ViewServer.java#L66
Usage documentation at top of class refers to get method without context.
Should read:
ViewServer.get(this).addWindow(this);
//...
ViewServer.get(this).removeWindow(this);
//...
ViewServer.get(this).setFocusedWindow(this);
We use a PopupWindow
in some parts of our InputMethodService
, to show a fullscreen layer on top of the app without resizing the keyboard size.
I wanted to check the hierarchy of this PopupWindow
with HierarchyViewer
, using the ViewServer
class.
However, this PopupWindow
is not seen by HierarchyViewer
.
Read the source, you must.. PopupWindow.invokePopup():
mWindowManager.addView(mPopupView, p);
I would guess that the view is therefore not added to the DecorView
that we bind to the ViewServer
, which is obtained this way :
View decorView = inputMethodService.getWindow().getWindow().getDecorView();
If you have any pointers, please don't hesitate to show me the right direction. I might as well have missed something.
It works on my MotoX. However, the measure/layout/draw time consumption are always n/a. Can they be supported?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.