Add feature to SAB to use Playstore Expansion files for audio over 100MB

Most NT audio is over the Playstore 100MB limit, but Google Play allows you to attach two large expansion files (up to 2 GB each) that supplement APK. Google Play hosts the expansion files for your application and serves them to the device at no cost. The expansion files are saved to the device’s shared storage location (the SD card or USB-mountable partition; also known as the “external” storage) where your app can access them. On most devices, Google Play downloads the expansion file(s) at the same time it downloads the APK, so your application has everything it needs when the user opens it for the first time. In some cases, however, your application must download the files from Google Play when your application starts.

Source 1

Please consider adding a tool to SAB to take advantage of Playstore Expansion files.

Thank You, RG

I asked Richard about this when SIL Language Software first started helping with SAB. In reality expansion files are an early attempt (by Android) at solving the problem of lazy loading data and it is not suited well for this type of media (and rather a simplistic approach). It might make sense for a game with level data.

In reality, you want to download resources either as needed or selectively download a portion when you have wifi. You really don’t want to download ALL the resources when installing.

So the plan has been to include a Download Manager (similar to the app). This would also allow you to delete files.

I was recently talking with FCBH and we thought about being able to mark certain files as being downloaded automatically after the app is installed (allowing the user to choose when that happens on Wifi or cell).

Also, there is a new version of FCBH’s Digital Bible Platform that will allow different qualities of the same chapter. So the user could have a configuration option for which size/quality of audio that they want to download instead of only having one size/quality for all users.

We also want to have the ability to make it easy to share selected downloaded audio with users (which would work well with expansion files). I am not sure what would happen to expansion files when sharing an app between users. It probably wouldn’t get shared and the app would break.

So those are a few reasons that expansion files are not necessarily a good idea and we have decided not to support them at the moment.

For His Great Name,
Chris Hubbard

1 Like