My app freezes for some time while the first opening of the app. From there on app fires up with no time. Why is this happening and any ways to fix this? I have tried adding a Simple Activity with one small image, even then it freezes for the first time.
Asked
Active
Viewed 1,376 times
3
-
You might be doing lot of work in your Application class. – Tasneem Dec 01 '16 at 05:19
-
is it happening after build and run from android studio or anytime? – Divyesh Patel Dec 01 '16 at 05:19
-
Possible duplicate : http://stackoverflow.com/questions/20546703/how-to-fix-white-screen-on-app-start-up – Haresh Chhelana Dec 01 '16 at 05:19
-
1Would you give some more data like showing some of your code and what is the image resolution,which device you are testing. – Soham Dec 01 '16 at 05:28
-
The app itself freezes, or the process of building the app takes longer? – OneCricketeer Dec 01 '16 at 05:34
-
@HareshChhelana Thanks for your replay, That solution is only hiding the white screen, even then it takes time to show anything on the screen. – Vettiyanakan Dec 01 '16 at 05:35
1 Answers
4
There is a strange issue with newly released Android Studio 2.0 or 2.1. First time of launching application take longer than usual. This issue happens only in debug mode and not effect to your released APK. Also I was suffering this issue and found this solution.
Settings/Preferences→ Build, Execution, Deployment → Instant Run and uncheck Instant Run

OneCricketeer
- 179,855
- 19
- 132
- 245

Shanto George
- 994
- 13
- 26