Limit on size of Assets folder

Hi,

I just wanted to ask if there is any limit placed on how much data can be placed in the Assets folder of the Android app.

I intend to include a pre-populated database having size of around 30MB. Would that be a problem on any device running any Android version?

My app supports devices on version 21 and above.

Thanks!

There is nothing unique to assets/. There are limits on the overall APK size, to which assets contribute. Right now, there is a 100MB limit for APKs distributed via the Play Store, and other app distribution channels may have their own limits.

Some users might get irritated due to the amount of space your app takes up. However, I would not expect any technical problems.

So what other options do I have? This is master data which is essential for the app to work.

Have less data! :grin:

Or, download the database from your server. That eliminates the duplicate copy packed in the asset. BTW, I am assuming that the pre-populated database is SQLite, meaning that you would need to copy it from the asset to a file on the filesystem to be able to use it.

Won’t that be an annoyance of its own kind that right after install, the user is made to wait for all the master data to be downloaded?

Yep, that’s a valid point.

Yep, it is SQLite.

Yes. Some users value storage space over a one-time bandwidth hit. Others will not. There is no right or wrong answer — I am merely pointing out pain points.