Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Record in Android Emulator flickers

I have tried recording in Android Studio with different emulated devices and programs, but all my records flicker heavily.

The screen of the emulator itself doesn't flicker.

I have tried using Nexus 5X, Nexus 7 and Pixel 2 on 25 and 28 API level.

I'm running the emulator on Windows 10 with Intel Core i7-4720HQ, 16GB memory and NVIDIA GeForce GTX 970M.

I have set the mode to Maximum Performance in NVIDIA Control Panel.

When I record the same programs with real phone, everything works fine.

The version of Android Studio is up-to-date.

like image 500
PlasticMind Avatar asked Oct 02 '20 00:10

PlasticMind


People also ask

Why is my screen recording glitch Android?

You might face audio and video issues in your screen recording if the 'Force desktop mode' flag is turned on in the Developer options. So you need to disable it. For that, open Settings on your phone and go to System > Developer options. You can also search for Developer options using the search in Settings.

How do I record audio on an emulator?

You need to add audio recording + playback support to the emulator (Android SDK and AVD manager -> Virtual devices -> Edit -> Hardware -> New). Then use the [MediaRecorder API][1] to record (MediaRecorder. AudioSource. MIC).

Why is my android emulator lagging?

The Android Emulator is very slow. The main reason is because it is emulating the ARM CPU & GPU, unlike the iOS Simulator, which runs x86 code instead of the ARM code that runs on the actual hardware.


2 Answers

I had the same problem and I have solved it by changing a parameter in the emulator's config.ini file

To solve it you have to go to the path where you have the emulator installed: Example -> C:\Users\XXXX\.android\avd\ You enter the emulator that you want to fix and where it says:

hw.gpu.mode = auto 

You replace it with:

hw.gpu.mode = guest 

Save changes and restart the emulator

like image 188
Sergio Martin Avatar answered Sep 19 '22 05:09

Sergio Martin


I had the same issue and was able to solve it by changing Emulated Performance to "Software-GLES 2.0" in the AVD settings. In the notes, it says that this setting is supposed to be used to work around issues with the computer's graphic card. (This solution is similar to the one of @padDad, just with a different setting)

Screenshot of solution in AVD Manager

like image 23
daniswhoiam Avatar answered Sep 21 '22 05:09

daniswhoiam