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
also accepted).
How to get screenshot of Application on Android Things device in Android Studio or via ADB?
Asked Answered
It's not a "screenshot", but how about mp4 movie instead?
adb shell screenrecord --verbose /sdcard/screen.mp4 --time-limit 1
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 : OpenGL ES-CM 1.0
01-22 02:07:02.687: E/libEGL(148): called unimplemented OpenGL ES API
01-22 02:07:02.687: E/SurfaceFlinger(148): glCheckFramebufferStatusOES error 0
01-22 02:07:02.687: E/SurfaceFlinger(148): got GL_FRAMEBUFFER_COMPLETE_OES error while taking screenshot
My pleasure! どういたしまして^^ –
Transitive
I doubt it's because of "old limited OpenGL version". I have
OpenGL ES-CM 1.1
on my Android 4.2
phone and the screencap
works as expected. Probably it's a buffer-handling thing... –
Cenotaph 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.
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
.
© 2022 - 2024 — McMap. All rights reserved.
Android Things
OS on myRaspberry Pi
board, notRaspbian
. – Albitescreenrecord
in the accepted answer? – Cenotaphscreen.mp4
file from Raspberry Pi 3 with byadb pull /sdcard/screen.mp4
command and play it in default windows mediaplayer. No video converter needed. – Albitepng
,jpeg
, etc. formats. – Cenotaph.mp4
file, which I can open in player.screenshot
file from here I can't open in anywhere. By the way, how determine parameters (screen resolution or pixel format) forffmpeg
command line? – AlbiteAndroid Things
boot? Anyways, there are many ways, e.g.adb shell dumpsys window | grep mUnres
– CenotaphAndroid Things
boot). I will try Your solution again! – Albite