Acquisire le schermate UI di Wear
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Wear OS offre diversi modi per acquisire l'UI di Wear OS:
-
Android Studio: utilizza Logcat per acquisire screenshot.
-
App complementare: sui dispositivi Google Pixel Watch, utilizza Porta indossabile
screenshot per acquisire screenshot.
-
Registrazione dello schermo per Wear OS: registra un video della schermata.
Acquisire screenshot in Android Studio
L'acquisizione di screenshot dell'interfaccia utente dell'app indossabile tramite Android Studio è simile all'acquisizione di
screenshot sui dispositivi mobili. Segui questi passaggi:
- Apri l'app in Android Studio.
- Esegui l'app su un dispositivo o su un emulatore.
- Vai alla schermata che vuoi acquisire sul dispositivo o nell'emulatore.
- Apri Logcat e fai clic sull'icona
dell'icona di uno screenshot. Potrebbe essere
sotto il menu extra.
- Se vuoi, seleziona Screenshot del frame e un riquadro rotondo di Chrome.
- Fai clic su Salva.
Acquisisci screenshot con l'app complementare
Per acquisire screenshot di un dispositivo Google Pixel Watch, puoi utilizzare l'app complementare Google Pixel Watch. Procedi nel seguente modo:
- Nella UI, trova la schermata che vuoi acquisire.
- Sullo smartphone Android, attiva le Opzioni sviluppatore, se non l'hai ancora fatto,
vai a Impostazioni > Informazioni sullo smartphone e toccando Numero build.
sette volte.
- Apri l'app complementare Wear sul telefono.
- Tocca il pulsante del menu extra con tre puntini nell'angolo in alto a destra per aprire il menu.
- Tocca Acquisisci screenshot indossabile. Viene visualizzato il seguente messaggio:
Richiesta di screenshot inviata. Riceverai quindi le seguenti notifiche:
Screenshot dell'orologio pronto per l'invio e tocca per inviare.
- Tocca la notifica per ricevere opzioni per l'invio o la condivisione dello screenshot tramite Bluetooth.
Gmail o altre opzioni.
Usare la registrazione dello schermo per Wear OS
Se sviluppi su macOS, puoi usare il progetto GitHub
Strumento Android per Mac per registrare un video dal tuo dispositivo Wear OS.
In alternativa, registra un video dal tuo dispositivo Wear OS procedendo nel seguente modo:
- Registra fotogrammi non elaborati sullo smartwatch, come mostrato di seguito:
adb shell screenrecord --time-limit 30 --output-format raw-frames --verbose /sdcard/video.raw
- Copia il file non elaborato sul tuo computer di sviluppo, come mostrato di seguito:
adb pull /sdcard/video.raw video.raw
- Usa
ffmpeg
per convertire il file da elaborare in MP4, come mostrato di seguito:
ffmpeg -f rawvideo -vcodec rawvideo -s 400x400 -pix_fmt rgb24 -r 10 -i video.raw -an -c:v libx264 -pix_fmt yuv420p video.mp4
Nota: consulta le
Sito web FFmpeg per il download
e istruzioni di installazione.
I campioni di contenuti e codice in questa pagina sono soggetti alle licenze descritte nella Licenza per i contenuti. Java e OpenJDK sono marchi o marchi registrati di Oracle e/o delle sue società consociate.
Ultimo aggiornamento 2025-07-26 UTC.
[null,null,["Ultimo aggiornamento 2025-07-26 UTC."],[],[],null,["# Capture Wear UI screens\n\nWear OS provides several ways to capture the Wear OS UI:\n\n- **Android Studio**: use Logcat to take screenshots.\n- **Companion app** : on Google Pixel Watch devices, use the **Take wearable\n screenshot** option to take screenshots.\n- **Screen record for Wear OS**: record a video of the screen.\n\nCapture screenshots in Android Studio\n-------------------------------------\n\n\nCapturing screenshots of your wearable app's UI using Android Studio is similar to capturing\nscreenshots on mobile. Use the following steps:\n\n1. Open your app in [Android Studio](/studio).\n2. Run your app on a device or an emulator.\n3. Navigate to the screen you want to capture on the device or in the emulator.\n4. Open [Logcat](/studio/debug/am-logcat) and click the screenshot icon. It might be beneath the overflow menu.\n5. Optionally, select **Frame Screenshot** and select a round chrome.\n6. Click **Save**.\n\nCapture screenshots with the companion app\n------------------------------------------\n\n\nTo take screenshots of a Google Pixel Watch device, you can use the [Google Pixel Watch](https://play.google.com/store/apps/details?id=com.google.android.apps.wear.companion) companion app. Follow these steps:\n\n1. On your UI, find the screen that you want to capture.\n2. On the Android phone, enable **Developer options** , if you haven't already, by going to **Settings \\\u003e About phone** , and tapping **Build number** *seven times.*\n3. Open the Wear companion app on your phone.\n4. Tap the three dot overflow button in the upper-righthand corner to open the menu.\n5. Tap **Take wearable screenshot** . The following message appears: **Screenshot request sent** . Then you receive the following notifications: **Ready to send watch screenshot** and **tap to send**.\n6. Tap the notification to receive options for sending or sharing the screenshot using Bluetooth, Gmail, or other options.\n\nUse screen record for Wear OS\n-----------------------------\n\n\nIf you develop on macOS, you can use the GitHub project\n[Android tool for Mac](https://github.com/mortenjust/androidtool-mac/blob/master/README.md) to record a video from your Wear OS device.\n\n\nAlternatively, record a video from your Wear OS device using the following steps:\n\n1. Record raw frames on the watch, as shown in the following: \n\n ```text\n adb shell screenrecord --time-limit 30 --output-format raw-frames --verbose /sdcard/video.raw\n ```\n2. Copy the raw file to your development machine, as shown in the following: \n\n ```text\n adb pull /sdcard/video.raw video.raw\n ```\n3. Use `ffmpeg` to convert the raw file to MP4, as shown in the following: \n\n ```scdoc\n ffmpeg -f rawvideo -vcodec rawvideo -s 400x400 -pix_fmt rgb24 -r 10 -i video.raw -an -c:v libx264 -pix_fmt yuv420p video.mp4\n ```\n\n\n**Note:** Refer to the\n[FFmpeg website](https://www.ffmpeg.org/download.html) for download\nand installation instructions."]]