Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Rysunek 1. Nagraj film z aplikacją.
Logcat umożliwia nagrywanie na urządzeniu pliku wideo MP4, np. na potrzeby materiałów marketingowych lub debugowania. Filmy mogą trwać maksymalnie 3 minuty, a dźwięk nie jest rejestrowany razem z plikiem wideo.
Interakcja z ekranem urządzenia, aby ustawić początek filmu.
Po lewej stronie okna Logcat kliknij Nagrywanie ekranu.
W oknie Opcje rejestratora ekranu ustaw opcje nagrywania:
Szybkość transmisji bitów: wpisz szybkość transmisji bitów. Wartość domyślna to 4 Mbit/s.
Rozdzielczość: podaj wartość szerokości i wysokości w pikselach. Wartość musi być wielokrotnością liczby 16. Domyślnie jest to rozdzielczość urządzenia.
Aby rozpocząć nagrywanie, kliknij Rozpocznij nagrywanie.
Aby zatrzymać nagrywanie, kliknij Zatrzymaj nagrywanie.
W oknie Zapisz jako zapisz plik MP4.
W oknie Nagrywanie ekranu kliknij jeden z przycisków, aby wyświetlić lokalizację pliku, otworzyć nagranie w odtwarzaczu lub zamknąć okno.
Nagrywanie filmów za pomocą emulatora
Jeśli używasz emulatora, możesz nagrywać filmy bezpośrednio z karty Nagrywanie i odtwarzanie w sekcji Rozszerzone sterowanie. Po nagraniu filmu możesz go zapisać w formacie WEBM lub GIF:
Rysunek 2. Nagraj film za pomocą emulatora.
Treść strony i umieszczone na niej fragmenty kodu podlegają licencjom opisanym w Licencji na treści. Java i OpenJDK są znakami towarowymi lub zastrzeżonymi znakami towarowymi należącymi do firmy Oracle lub jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-04-06 UTC.
[null,null,["Ostatnia aktualizacja: 2025-04-06 UTC."],[],[],null,["# Record a video\n\n**Figure 1.** Record a video of your app.\n\n\n[Logcat](/studio/debug/am-logcat) lets you record an MP4 video\nfrom your device, such as for marketing materials or for debugging. Videos are a maximum of three\nminutes long, and audio is not recorded with the video file.\n\nTo record a video of your app, do the following:\n\n1. Open an app project.\n2. [Run the app](/studio/run#RunningApp) on a device.\n3. Click **View \\\u003e Tool Windows \\\u003e Logcat**.\n4. Interact with the display on the device to stage the start of the video.\n5. Click **Screen Record** in the left side of the Logcat window.\n6. In the **Screen Recorder Options** dialog, set the recording options:\n - **Bit Rate:** Enter a bit rate. The default is 4 Mbps.\n - **Resolution:** Enter a width and height value in pixels. The value must be a multiple of 16. The default is the resolution of the device.\n - **Show Taps:** Enable visual feedback for taps.\n7. Click **Start Recording** to start the recording.\n8. Click **Stop Recording** to stop the recording.\n9. In the **Save As** dialog, save the MP4 file.\n10. In the **Screen Recorder** dialog, click one of the buttons to show the file location, open the recording in a player, or dismiss the dialog.\n\nRecord video with the emulator\n------------------------------\n\nIf you are using an emulator, you can record video directly from the **Record and Playback**\ntab in **Extended Controls**. Once you have recorded a video, you can save it as either WEBM or\nGIF format:\n**Figure 2.** Record a video using an emulator."]]