When try clicking on device screeshot option in UIautomator viewer. I'm getting:
error taking device screenshot:EOF
Please help me in resolving this
Related
I need to download a file present on the server using a button in an android app created with genexus 16U11. In a web environment I can use this procedure https://wiki.genexus.com/commwiki/servlet/wiki?14144,HowTo%3A+Downloading+a+File+using+HTTP+Protocol
but it doesn't work for a smart device, when I press the button I get an error "Error in the application server (org.json.JSONException) but I can't find more details with logcat or in the event viewer.
Does someone have a solution?
I am trying to capture windows accessibility events from wordpad.exe for context menu items shown above. When I look at the OBJ_FOCUS events from AccEvent.exe, it doesn't show me anything but
"Error: getting object: hr=0xFFFFFFFF80004005 - Unspecified error".
Sometimes it'll show the same thing except it'll say "Access denied" instead of unspecified error.
I am not sure why this is happening because I can see the events fine all the other Microsoft office products. I am using Windows 7 on a VM.
If anybody have any ideas about this, please let me know.
Thank you.
I was trying to upload a piece of code for the arduino but when I am trying to upload it to the board it is throwing up a error message that it could not find any usb device. I have already tried by changing the ports and the programmer but nothing seems to work.
I developed a simple application on Kony and while launching the application it shows the message "Waiting for device". How can I solve it?
Just "wake" your device by unlocking it, touching its screen or going to home screen.
This message is shown when there are no devices/emulators connected to install the application.
You can check if any device/emulator connected by using the below command in Windows command prompt.
adb devices
If the above command lists any device/emulator then you wont see the error.
If the physical device is already connect via USB, the you can check whether the developer option and USB debugging is enabled in you android device.
How to enable developer option?
Hope this helps!
This only happends on the AVD devices within the AVD manager. I never get this error when capturing uiautomatorviewer screenshots from Genymotion.
When attempting to capture within the Android Device Monitor in AS...it gives me a little more detail:
Reason:
Error obtaining UI hierarchy
Try it with HAXM acceleration turned off, if you can. I had to run the test using a profile that then ran the test on a physical device to get the screen shots. Essentially, if the AVD has Use GPU or Snapshot selected - even if running on a USB attached device, screenshots fail. This is a bug in uiautomator according to the developers involved with maturing the Appium platform.
In addition to answer given by Houston Haynes, the problem can happen if you have set the flags for your activity like this:
getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE);
You can just comment the code and take the screenshots via anything(Android Studio, uiatutomatorviewer etc). Hope it helps!!