adrielcafe / NMSAlphabetAndroidApp

An unofficial translator app for No Man's Sky
https://play.google.com/store/apps/details?id=cafe.adriel.nmsalphabet.free
MIT License
25 stars 12 forks source link

First app start takes very long #2

Closed cherry-wave closed 8 years ago

cherry-wave commented 8 years ago

I don't know if this is just a development issue but after the app is deployed on the phone and started (you can already see a dark gray screen), it takes a very long time for the login screen to show up.

If I close the app and start it again, it is ok.

adrielcafe commented 8 years ago

Very odd, when the app starts for the first time it "does nothing" in the first 15 seconds

captura de tela 2016-05-02 as 16 28 57

I'll investigate further

adrielcafe commented 8 years ago

Okay, found where the problem is. Android Studio 2.0+ has the Instant Run feature:

Introduced in Android Studio 2.0, Instant Run is a behavior for the Run and Debug commands that significantly reduces the time between updates to your app. Although your first build may take longer to complete, Instant Run pushes subsequent updates to your app without building a new APK, so changes are visible much more quickly.

To disable Instant Run go to Settings > Build, Execution, Deployment > Instant Run and disable the first option. captura de tela 2016-05-02 as 16 46 37

Tip: Even if the the first build take too long, the next build will be far more fast with Instant Run. So It's good keep it enabled.

cherry-wave commented 8 years ago

OK thanks =)