Created
June 15, 2016 07:45
-
-
Save roboriaan/f65a276c865ff6a363ba4c152830cda1 to your computer and use it in GitHub Desktop.
Read custom metadata from AndroidManifest.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Nowhere on the internet does this exist because of the total hacking nature, bad documentation and cowboy gippo coding of the java to .net port. Inconsistent placing of various functions, enums, and members. | |
var t = PackageManager.GetApplicationInfo(PackageName, Android.Content.PM.PackageInfoFlags.MetaData); | |
Bundle b = t.MetaData; | |
//Manifest | |
// <application android:label="@string/app_name" android:icon="@drawable/Icon" android:theme="@style/MyTheme"> | |
// <meta-data android:name="ApplicationVersion" android:value="10.0.0.2" /> | |
// </application> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment