Delay when opening Android apps

3 posts, 1 answers
  1. TJ
    TJ avatar
    58 posts
    Member since:
    Aug 2013

    Posted 05 Jan 2015 Link to this post

    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. Answer
    Mihail
    Admin
    Mihail avatar
    75 posts

    Posted 06 Jan 2015 Link to this post

    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.

     
  3. TJ
    TJ avatar
    58 posts
    Member since:
    Aug 2013

    Posted 06 Jan 2015 Link to this post

    Thanks Mihail.
Back to Top