Bug? Old screenshot

Informatix

Expert
Licensed User
Longtime User
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.
 

Toky Olivier

Active Member
Licensed User
Longtime User
Me too, I encountered this issue many times (with my phones) not emulators. Finally, I used screen shot apps...
 

Informatix

Expert
Licensed User
Longtime User
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.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…