Diego Torres Milano
Diego Torres Milano
`dump` will show what's on the screen, so you may have to start your activities and get the dump then. On Mon, Jul 1, 2013 at 9:39 AM, salamatiehsan [email protected]:...
Please be more specific about the problem. Show some source code, expectation, results, etc. Also specify versions (AVC, android, etc.) and device.
It would be interesting to know whether the same can be reproduced on Ubuntu or OS X or if it's Windows only.
They might not be `Views`, that's why you don't have them in the `dump`. In those cases, methods like [imageToData()](https://github.com/dtmilano/AndroidViewClient/blob/master/src/com/dtmilano/android/adb/adbclient.py#L941) could be of great help.
Hi, can you please elaborate on > It's kind of buggy, because after one shot, the "channel" is closed and I have to instantiate again. but it's better than nothing...
``` device.takeSnapshot(reconnect=True) ``` would do the trick, actually for performance reasons if you are going to take only one screenshot it disconnects, so if you are planning to take more...
Regarding the second part, are you trying to *shake* a device or emulator?
What's in your script when the exception is thrown? Does the device appear in `adb devices`? Can you connect with `adb shell`?
It seems `ANDROID_HOME` is not set in the environment, at least it's what the error says.
Perhaps commit 62d5626e54274aa3c5ecf54b648bc2fbf2f13ae7 solves your problem. You can give the lastest version a shot.