Naveen Kumar M
Naveen Kumar M

Reputation: 7557

My application taking so much time to launching First Activity screen

My application taking so much time to launching First Activity screen. It will showing white screen for long time. Even after kill my application and accessing.

I am using Java 8 and Android Studio 2.1.1, Gradle version as com.android.tools.build:gradle:2.1.0

Upvotes: 9

Views: 23133

Answers (7)

sparsh singhal
sparsh singhal

Reputation: 1

In my case, it was due to instant run enabled. Though this works fine on the latest android version 4.1.1

Upvotes: 0

prashant
prashant

Reputation: 219

If someone is still facing this issue, please check your styles.xml for the below entry, and disable it, if it is present.

<item name="android:windowDisablePreview">true</item>

Upvotes: 1

Shubham Gupta
Shubham Gupta

Reputation: 103

If you have an image which shows in splash screen and if there is only single density image, put it in drawable-xxxhdpi folder.

Upvotes: 2

Milan Pansuriya
Milan Pansuriya

Reputation: 2559

check this In android studio --> File --> Setting --> Build --> Remove tick following option's enter image description here

Upvotes: 8

Panneer Selvam R
Panneer Selvam R

Reputation: 443

The Instant Run is enabled in your Android Studio. Try to disable the function. You will not get that issue.

Why does my App start incredibly slow (10s+) at first run, showing only white screen on android 5.0?

Upvotes: 8

M Navneet Krishna
M Navneet Krishna

Reputation: 694

In my experience, Fabric consumes a bit of time in establishing the connection and communicating.

I would suggest you to comment the Fabric portion on the code and re-run to see if there is any change in the app load time.

Additionally u could move the code on to an async task rather than performing these on the main thread. It would at least not slow down ur initial app launch time.

Upvotes: 1

Krunal Dave
Krunal Dave

Reputation: 113

if you are launching application to the first time it take time to load, after that when you open it second time it not take time to open.

You are using debug_apk. try creating release sign apk once and check it take time or not.

Upvotes: 4

Related Questions