Hacker10
Hacker10

Reputation: 41

Android Program is running slow

I developed a firebase app, where one could post and you could like and react. Then, I stopped working on it. After some time, I started working on it again, when I was working on it, I found that the app now runs very slow, I had 3 layout (fragment used) and view pager added to it via adapter(before). Beforehand it used to work like a charm, but now when I move from one activity to other, the mobile device kind of like hangs. It was not behaving like this previously, why is that? Anyone facing similar problem?

Upvotes: 0

Views: 291

Answers (2)

Gastón Saillén
Gastón Saillén

Reputation: 13129

Just go to your AVD device settings and disable Device frame, this will improve the speed of your emulator

enter image description here

Upvotes: 1

Roman Gherta
Roman Gherta

Reputation: 840

First of all I would propose you allocate a larger memory to your ADB virtual device.

If this doesn't help, use Android Profiler to better understand the cause of this memory loss.

https://developer.android.com/studio/profile/android-profiler.html

Upvotes: 1

Related Questions