Navigation Menu

Skip to content

Commit

Permalink
added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
stopiccot committed Apr 30, 2014
1 parent 3727528 commit 25313c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions android-project/src/org/libsdl/app/SDLActivity.java
Expand Up @@ -514,6 +514,8 @@ public InputStream openAPKExtensionInputStream(String fileName) throws IOExcepti
Integer patchVersion = Integer.parseInt(nativeGetHint("SDL_ANDROID_APK_EXPANSION_PATCH_FILE_VERSION"));

try {
// To avoid direct dependency on Google APK extension library that is
// not a part of Android SDK we access it using reflection
expansionFile = Class.forName("com.android.vending.expansion.zipfile.APKExpansionSupport")
.getMethod("getAPKExpansionZipFile", Context.class, int.class, int.class)
.invoke(null, this, mainVersion, patchVersion);
Expand Down

0 comments on commit 25313c3

Please sign in to comment.