Thursday, August 16, 2012

[android-developers] how to ship data into apk as internal storage

I have a requirement of downloading big data from a server to update my app (5 MB today but it can grow up to 40MB). 

In most cases it is not a problem because the backend is sending just the diff files to update the application. So this download usually runs fast.
The problem occurs in the first time the user runs the application. So all that data is downloaded from the server and the user has to wait too long.

I was thinking in include this big data into the apk as an asset and then copy it to the internal storage. The problem is that I'm going to double my memory use since I can't find out how to remove those assets files once the aplication is installed.
Does anyone has any suggestion on how to include the big data in the internal store when the application is installed? Is it possible to ship this data into apk as internal storage?

thanks,
Luiz


--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment