I tried to capture a screenshot of a device emulated with Genymotion and the result is quite old and comes from another device (like I'm getting an old image stored in a cache). I used directly the ADB tool to check and the result is good so the problem comes from B4A.
B4A calls ADB -s <serial> shell screencap <output file> to create a screenshot.
If you are seeing an old screenshot then this command silently failed for some reason. Test it with a real device.
B4A calls ADB -s <serial> shell screencap <output file> to create a screenshot.
If you are seeing an old screenshot then this command silently failed for some reason. Test it with a real device.
With a real device it works.
WIth ADB, I ran this command on the emulated device:
adb -s 192.168.21.101:5555 shell screencap -p /sdcard/test.png
and the result was good.
With B4A, the created file is good (b4a_screenshot.png) but the file displayed in B4A is not the right one.