

is your application's Java-style package name, available from getPackageName().Įx: sdcard/Android/obb/packagename/main.1.packagename.obb is the path to the shared storage space, available from getExternalStorageDirectory(). The specific location for your expansion files is: Play itself, you must save the files to the exact same location. The event that your application must perform the download from Google To ensure properīehavior, you must not delete, move, or rename the expansion files. Them to the system's shared storage location. When Google Play downloads your expansion files to a device, it saves If you upload a main expansion file, the fileĮx. Your application's Java-style package name.įor example, suppose your APK version is 314159 and your package

This is an integer that matches the version code of the APK with which the expansion is first associated.ĭeveloper Console allows you to re-use an uploaded expansion file with a new APK, There can be only one main file and one patch file for each APK. Specifies whether the file is the main or patch expansion file. There are three components to this scheme: main or patch Please see below screen for how apk expansion work.Įach expansion file you upload can be any format you choose (ZIP, PDF, MP4, etc.). The patch expansion file is optional and intended for small updates to the main expansion file.The main expansion file is the primary expansion file for additional resources required by your application.Conceptually, each expansion file plays a different role: We recommend you use a compressed file to conserve bandwidth during theĭownload. Each file can be up to 2GB and it can be any format you choose, but In some cases, however, your application must download the filesįrom Google Play when your application starts.Įach time you upload an APK using the Google Play Android DeveloperĬonsole, you have the option to add one or two expansion files to theĪPK. On most devices, Google Play downloads theĮxpansion file(s) at the same time it downloads the APK, so yourĪpplication has everything it needs when the user opens it for the first USB-mountable partition also known as the "external" storage) where Saved to the device's shared storage location (the SD card or Serves them to the device at no cost to you. Google Play hosts the expansion files for your application and Google Play allows you to attach two large expansion files that To make this process easier for you and more pleasant for users, Hosting and serving theĮxtra files can be costly, and the user experience is often less than Resources yourself when the user opens the app. If your app exceeded 50MB, you had to host and download the additional

High-fidelity graphics, media files, or other large assets. For most applications, this is plenty of space for all theĪpplication's code and assets. Google Play currently requires that your APK file be no more thanĥ0MB.
