از صفحات رابط کاربری Wear عکس بگیرید
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
Wear OS چندین راه را برای ثبت رابط کاربری Wear OS ارائه می دهد:
- Android Studio : از Logcat برای گرفتن اسکرین شات استفاده کنید.
- برنامه همراه : در دستگاههای Google Pixel Watch، از گزینه اسکرینشات پوشیدنی برای گرفتن عکس از صفحه استفاده کنید.
- ضبط صفحه برای Wear OS : فیلمی از صفحه ضبط کنید.
در اندروید استودیو اسکرین شات بگیرید
گرفتن اسکرین شات از رابط کاربری برنامه پوشیدنی با استفاده از Android Studio شبیه به گرفتن اسکرین شات در موبایل است. از مراحل زیر استفاده کنید:
- برنامه خود را در Android Studio باز کنید.
- برنامه خود را روی دستگاه یا شبیه ساز اجرا کنید.
- به صفحه ای که می خواهید در دستگاه یا شبیه ساز عکس بگیرید بروید.
- Logcat را باز کنید و روی نماد اسکرین شات کلیک کنید. ممکن است زیر منوی سرریز باشد.
- به صورت اختیاری، Frame Screenshot را انتخاب کنید و کروم گرد را انتخاب کنید.
- روی ذخیره کلیک کنید.
با برنامه همراه اسکرین شات بگیرید
برای گرفتن اسکرین شات از دستگاه Google Pixel Watch، میتوانید از برنامه همراه Google Pixel Watch استفاده کنید. این مراحل را دنبال کنید:
- در رابط کاربری خود، صفحهای را که میخواهید عکس بگیرید پیدا کنید.
- در تلفن Android، گزینههای برنامهنویس را فعال کنید، اگر قبلاً این کار را نکردهاید، با رفتن به Settings > About phone ، و هفت بار روی Build number ضربه بزنید.
- برنامه Wear companion را در تلفن خود باز کنید.
- روی دکمه سرریز سه نقطه در گوشه بالا سمت راست ضربه بزنید تا منو باز شود.
- روی گرفتن اسکرین شات پوشیدنی ضربه بزنید . پیغام زیر ظاهر می شود: درخواست اسکرین شات ارسال شد . سپس اعلانهای زیر را دریافت میکنید: آماده ارسال اسکرینشات ساعت و برای ارسال ضربه بزنید .
- روی اعلان ضربه بزنید تا گزینه های ارسال یا اشتراک اسکرین شات با استفاده از بلوتوث، جیمیل یا گزینه های دیگر را دریافت کنید.
از رکورد صفحه برای Wear OS استفاده کنید
اگر روی macOS توسعه میدهید، میتوانید از ابزار اندروید پروژه GitHub برای مک برای ضبط ویدیو از دستگاه Wear OS خود استفاده کنید.
از طرف دیگر، با استفاده از مراحل زیر، یک ویدیو از دستگاه Wear OS خود ضبط کنید:
- همانطور که در زیر نشان داده شده است، فریم های خام را روی ساعت ضبط کنید:
adb shell screenrecord --time-limit 30 --output-format raw-frames --verbose /sdcard/video.raw
- همانطور که در زیر نشان داده شده است، فایل خام را در ماشین توسعه خود کپی کنید:
adb pull /sdcard/video.raw video.raw
- همانطور که در زیر نشان داده شده است برای تبدیل فایل خام به MP4 از
ffmpeg
استفاده کنید: ffmpeg -f rawvideo -vcodec rawvideo -s 400x400 -pix_fmt rgb24 -r 10 -i video.raw -an -c:v libx264 -pix_fmt yuv420p video.mp4
توجه: برای دانلود و آموزش نصب به وب سایت FFmpeg مراجعه کنید.
محتوا و نمونه کدها در این صفحه مشمول پروانههای توصیفشده در پروانه محتوا هستند. جاوا و OpenJDK علامتهای تجاری یا علامتهای تجاری ثبتشده Oracle و/یا وابستههای آن هستند.
تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی."],[],[],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."]]