Created
June 8, 2018 22:39
-
-
Save sjfricke/6fccd36ccf7da5d0de8da319a6fc09d1 to your computer and use it in GitHub Desktop.
AndroidManifest.xml settings for a pure native code
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
<!-- This .apk has no Java code itself, so set hasCode to false. --> | |
<application | |
android:allowBackup="true" | |
android:icon="@mipmap/ic_launcher" | |
android:label="@string/app_name" | |
android:roundIcon="@mipmap/ic_launcher_round" | |
android:supportsRtl="true" | |
android:hasCode="false" | |
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"> | |
<!-- Our activity is the built-in NativeActivity framework class. | |
This will take care of integrating with our NDK code. --> | |
<activity android:name="android.app.NativeActivity" | |
android:label="@string/app_name" | |
android:configChanges="orientation|keyboardHidden" | |
android:screenOrientation="portrait"> | |
<!-- Tell NativeActivity the name of or .so --> | |
<meta-data android:name="android.app.lib_name" | |
android:value="[INSERT_LIBRARY_NAME_FROM_CMAKE_FILE]" /> | |
<intent-filter> | |
<action android:name="android.intent.action.MAIN" /> | |
<category android:name="android.intent.category.LAUNCHER" /> | |
</intent-filter> | |
</activity> | |
</application> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment