Hi Guys,
Need a little assistance with an problem i have coded myself into. ?
APP was developed with 5 images to load to a quiz type page, showing an image and then the user selects the right answer, simple stuff.
Got all the bugs and kinks all sorted as usual before implementing the additional 350 Plus .png files.
So i added all the images to the projects FILE folder via the IDE. They are all there, in Debug mode it was all good as i used the File.DirAssets to load an image into the imageview all works well.
I then proceeded to make it a Release build, the files were not present. i kept getting an exception as "File not found..."
I then proceeded to add the files to the Visual Designer, thinking this will definitely include such files in my build.
Grand, this is the case, BUT the app takes ages before it get to display the main activity. the startup is over 15 seconds.... and yes getting the ANR message... its trying to kill the APP before it even starts... ?
@Erel, i did review your video on performance, and i didn't stumble on any other way to kind of get the app to load up the Assets in a Async mode. So its not the usual suspects as per the video you made.
The 350 .png are about an average size is about 75kb small sized files.
The WHOLE apk works out to be 40MB, im not sure if that is large for a APK, most of my other work was MAX 6MB.
I get that this must be the bulk of images that now need to be "Moved" to the "cache" workspace of the APP so i can be addressed when needed.
Any ideas on how to streamline this, SQLite DB has the file name references, the SQLite is super fast. the Bottleneck from what i can see, is the Loadup before first Activity is shown.
I have looked on the Forum for a similar post and have not found one that addresses lagging/black screen/ startup delay / long memory load...
Any advice guys?
Need a little assistance with an problem i have coded myself into. ?
APP was developed with 5 images to load to a quiz type page, showing an image and then the user selects the right answer, simple stuff.
Got all the bugs and kinks all sorted as usual before implementing the additional 350 Plus .png files.
So i added all the images to the projects FILE folder via the IDE. They are all there, in Debug mode it was all good as i used the File.DirAssets to load an image into the imageview all works well.
I then proceeded to make it a Release build, the files were not present. i kept getting an exception as "File not found..."
I then proceeded to add the files to the Visual Designer, thinking this will definitely include such files in my build.
Grand, this is the case, BUT the app takes ages before it get to display the main activity. the startup is over 15 seconds.... and yes getting the ANR message... its trying to kill the APP before it even starts... ?
@Erel, i did review your video on performance, and i didn't stumble on any other way to kind of get the app to load up the Assets in a Async mode. So its not the usual suspects as per the video you made.
The 350 .png are about an average size is about 75kb small sized files.
The WHOLE apk works out to be 40MB, im not sure if that is large for a APK, most of my other work was MAX 6MB.
I get that this must be the bulk of images that now need to be "Moved" to the "cache" workspace of the APP so i can be addressed when needed.
Any ideas on how to streamline this, SQLite DB has the file name references, the SQLite is super fast. the Bottleneck from what i can see, is the Loadup before first Activity is shown.
I have looked on the Forum for a similar post and have not found one that addresses lagging/black screen/ startup delay / long memory load...
Any advice guys?