How To Get Screenshot Of Application On Android Things Device In Android Studio Or Via Adb?
Is there any way to get screenshot in Android Studio (or via ADB) for Raspberry Pi 3 Model B with Android Things Developer Preview on it? (any other way not via Android Studio/ADB
Solution 1:
It's not a "screenshot", but how about mp4 movie instead?
adb shell screenrecord --verbose /sdcard/screen.mp4--time-limit1
Though the recorded movie is not correctly recorded, it's still like a "screenshot". (I cannot get a frame out of it using QuickTime Player, but any other tool might be able to extract it.)
It seems that AndtoidThings supports old limited OpenGL version that unsupports screenshots.
01-01 00:00:10.606:I/SurfaceFlinger(148):version :OpenGLES-CM1.001-22 02:07:02.687:E/libEGL(148):calledunimplementedOpenGLESAPI01-22 02:07:02.687:E/SurfaceFlinger(148):glCheckFramebufferStatusOESerror001-22 02:07:02.687:E/SurfaceFlinger(148):gotGL_FRAMEBUFFER_COMPLETE_OESerrorwhiletakingscreenshot
Solution 2:
You can get screenshot from Vysor application installed on chrome browser.To do this follow the procedure below.
- install Vysor in chrome browser.
- Connect PC with Pi using adb connect.
- Open Vysor on PC and enjoy.
Solution 3:
You can also use the Android Device Monitor
.
Open it from Android Studio menu Tools -> Android -> Android Device Monitor
or run it from the sdk directory sdk/tools/monitor
.
Post a Comment for "How To Get Screenshot Of Application On Android Things Device In Android Studio Or Via Adb?"