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

Very long "First Start"

4 Answers 73 Views
Android Devices
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
dobiczek
Top achievements
Rank 1
dobiczek asked on 18 Dec 2013, 12:14 PM
Hello,
we are building an app for ios and android. Inside are roundabout 1000 thumbnails, so the size of the app is bit bigger, but less than 20 MB.
We developed with a subset of the data, so for us everything was fine. Now we wnated to release and inserted all data.

On IOS everything is fine, but on Android (i.e. Galaxy S4) the "First Start" will take very long. I am not talking about 30 seconds, i talk about 5++ or even 10 minutes!!!
When we remove almost all graphic files it is getting faster, but still slow.

Is there something we are doing wrong? I can't image that the unpacking of 40MB (apk size) can take that long.

And I am afraid no customer will accept this.
On IOS this no Problem at all.


4 Answers, 1 is accepted

Sort by
0
Stefan Dobrev
Telerik team
answered on 20 Dec 2013, 01:00 PM
Hi Holger,

Are you building your application in Debug or Release configuration for Android? When an application is built in Debug it includes the LiveSync functionality which extracts your application contents on the SD card on the very first run in order to enable LiveSync updates. I assume that this causing the slow startup on your side. You can find more information here how to enable or disable LiveSync.

Note: When you build for publishing the build is using the Release configuration.

Regards,
Stefan Dobrev
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
dobiczek
Top achievements
Rank 1
answered on 20 Dec 2013, 02:33 PM
Hello Stefan,

thanks for your reply.
You are absolutely right and we realized this yesterday evening.
You have just been quicker with your reply.
But nevertheless I am really happy about your answer, because now I know WHY Debug is that slow.
On IOS this doesn't matter, so we don't had this in mind.
Now it is clear. But is a SD Card really so slow? When I copy the same amount of data manually to the SD Card it is a lot faster.
I ask this because we are planning to do updates over the file system. And I guess downloaded files are stored in SD too.

Again, thanks a lot for this perfect answer.


BR

Holger
0
Stefan Dobrev
Telerik team
answered on 21 Dec 2013, 04:56 PM
Hello Holger,

The SD card is not that slow. The slowness comes from the fact that all content files are embedded as assets in the apk file. Icenium needs to "extract" those assets using the AssetManager class one by one and then copy them over the SD card which results in the current experience. Nevertheless we will look into ways how to improve this.

Hope this helps,
Stefan Dobrev
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
dobiczek
Top achievements
Rank 1
answered on 22 Dec 2013, 03:21 PM
Hi Stefan,

good to know, now I am relieved that there will be no performance problems if we copy/download something by our own to SD.

As one needs to install the app only for "harder" changes, like added plugins etc., it is not a big issue that installing takes that long. But wait, probably my customer wants me to add another 1000 small thumbs and than it will take 20 minutes. So it is good to know that this is on your agenda, even if it is not on the top of the list ;)

Thanks again and enjoy the Christmas time.

BR

Holger
Tags
Android Devices
Asked by
dobiczek
Top achievements
Rank 1
Answers by
Stefan Dobrev
Telerik team
dobiczek
Top achievements
Rank 1
Share this question
or