diff options
Diffstat (limited to 'backends/platform/android/org/scummvm/scummvm/Unpacker.java')
-rw-r--r-- | backends/platform/android/org/scummvm/scummvm/Unpacker.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/backends/platform/android/org/scummvm/scummvm/Unpacker.java b/backends/platform/android/org/scummvm/scummvm/Unpacker.java index 4564d96622..da76ceb5e5 100644 --- a/backends/platform/android/org/scummvm/scummvm/Unpacker.java +++ b/backends/platform/android/org/scummvm/scummvm/Unpacker.java @@ -10,6 +10,7 @@ import android.content.ContextWrapper; import android.content.DialogInterface; import android.content.Intent; import android.content.pm.ActivityInfo; +import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import android.content.pm.ResolveInfo; import android.net.Uri; @@ -275,6 +276,15 @@ public class Unpacker extends Activity { extras.putStringArrayList(ScummVMApplication.EXTRA_UNPACK_LIBS, unpack_libs); + final PackageInfo info; + try { + info = getPackageManager().getPackageInfo(getPackageName(), 0); + } catch (PackageManager.NameNotFoundException e) { + Log.e(LOG_TAG, "Error finding my own info?", e); + return; + } + extras.putString(ScummVMApplication.EXTRA_VERSION, info.versionName); + Intent intent = new Intent(ScummVMApplication.ACTION_PLUGIN_QUERY); // Android 3.1 defaults to FLAG_EXCLUDE_STOPPED_PACKAGES, and since // none of our plugins will ever be running, that is not helpful |