diff --git a/docs/html/guide/market/expansion-files.jd b/docs/html/guide/market/expansion-files.jd index 5aaf9f1607480..cd9b57aa9ecbb 100644 --- a/docs/html/guide/market/expansion-files.jd +++ b/docs/html/guide/market/expansion-files.jd @@ -700,7 +700,8 @@ boolean expansionFilesDelivered() { }
In this case, each {@code XAPKFile} object holds the version number and file size of a known -expansion file and a boolean as to whether it's the main expansion file.
+expansion file and a boolean as to whether it's the main expansion file. (See the sample +application's {@code SampleDownloaderActivity} class for details.)If this method returns false, then the application must begin the download.
Tip: For examples of these callbacks that update the download -progress UI, see the {@code SampleDownloaderActivity} in the sample app provided with the Expansion -Downloader package.
+progress UI, see the {@code SampleDownloaderActivity} in the sample app provided with the +APK Expansion Library package.Some public methods for the {@code IDownloaderService} interface you might find useful are:
@@ -1125,6 +1126,11 @@ ZipResourceFile expansionFile = new ZipResourceFile(filePathToMyZip); InputStream fileStream = expansionFile.getInputStream(pathToFileInsideZip); +For more information about using this library for your expansion files, look at +the sample application's {@code SampleDownloaderActivity} class, which includes additional code to +verify the downloaded files using CRC. Beware that if you use this sample as the basis for +your own implementation, it requires that you declare the byte size of your expansion +files in the {@code xAPKS} array.