I would like to capture/record the behavior of my Android app, running on an emulator and make a GIF image out it. Just like this one -
I can't comment because I'm too noob, but the answer above by shellhub is what I do as well and I think he deserves some votes!
The only thing I would add to that answer is enabling show touches on the device as well: https://medium.theuxblog.com/enabling-show-touches-in-android-screen-recordings-for-user-research-cc968563fcb9
EDIT: I've also found that I like using giphy capture: https://giphy.com/apps/giphycapture
The Android Monitor mentioned in the answer is deprecated in the new Android Studio 3.0.
According to the Documentation you can record a short video of your app like this:
Now you can use http://ezgif.com or https://cloudconvert.com to convert the mp4 to an gif-file like Sally already mentioned.
I found the easiest way (you have to update latest android studio & android monitory)
...
option to open More Setting on Android MonitorScreen Record
option on leftSTART RECORDING
Button to record videoSTOP RECORDING
Button to stop recording WEBM
format to GIF and save itWatch video tutorial on YouTube
First record video from AndroidStudio Select "Screen Record"
and save .mp4 video then go to any online tools to convert mp4 to gif
for example http://ezgif.com and https://cloudconvert.com
If you are using emulator on windows, screentogif is a solid option, free, much more flexible and up to 10x smaller file sizes!
basically you can capture any part of you screen and convert it to gif, in this case you capture where the emulator is open
You can record a video from your emulator or real device using the standard ADB tool:
adb shell screenrecord /sdcard/foo.mp4
To convert the video from MP4 to animated GIF, use ffmpeg (again, a standard, open-source tool):
ffmpeg -i foo.mp4 foo.gif
Given that phones nowadays have huge resolutions, a 10-second GIF can easily exceed several megabytes in size. To avoid that, record at a lower resolution by passing a --size XXXxYYY
argument to screenrecord
:
adb shell screenrecord --size 1024x768 /sdcard/compact.mp4
If you need to install ADB on Linux, just run sudo apt install adb
.
If you want to trim the beginning or the end of the video, pass the following arguments to ffmpeg
:
-ss 00:00:05
- where to start (e.g. 5 seconds into the video)-t 00:00:10
- total duration (e.g. 10 seconds)No need for video editors or to upload your possibly confidential screencast online.