This is a migrated thread and some comments may be shown as answers.

Delay when opening Android apps

2 Answers 80 Views
NativeScript Insiders
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
TJ
Top achievements
Rank 1
TJ asked on 05 Jan 2015, 09:53 PM
Hey all,

Every time I open a newly built Android app there's a ~10 second delay before I see my app. You can see this on https://github.com/tjvantoll/grocery-list—just run `tns run android` or `tns run android --emulator`.

I see the same delay when I deploy the sample app from the NativeScript CLI, and I haven't messed with any config files. My gut tells me this is related to the splash screen (or lack thereof), but I'm not quite sure. Any ideas?

Thanks,
TJ

2 Answers, 1 is accepted

Sort by
0
Accepted
Mihail
Telerik team
answered on 06 Jan 2015, 08:34 AM
Hi TJ,

At present the very first run of every NativeScript for Android application is slow. This is due the technical limitations of the current implementation.

On the very first run we extract (unzip) a lot of files from the *.apk file and it takes time. On ART enabled devices there is yet another step (more specifically AOT compilation) that slows down the application.

The good news is that we are working on another approach which will reduce the initial start-up time. We expect it will be integrated for the first NS Beta release in the first week of February.

Regards,
Mihail
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
TJ
Top achievements
Rank 1
answered on 06 Jan 2015, 04:59 PM
Thanks Mihail.
Tags
NativeScript Insiders
Asked by
TJ
Top achievements
Rank 1
Answers by
Mihail
Telerik team
TJ
Top achievements
Rank 1
Share this question
or