aboutsummaryrefslogtreecommitdiff
path: root/android_sample/AndroidManifest.xml
diff options
context:
space:
mode:
authorJaebaek Seo <duke.acacia@gmail.com>2019-01-10 17:43:21 -0500
committerGitHub <noreply@github.com>2019-01-10 17:43:21 -0500
commitd6a750e0fe966516e9b799bba55fb295e124a81b (patch)
tree1ff91cd882500a1444da04e20f6d1a34ac6503e9 /android_sample/AndroidManifest.xml
parent610296cc045b094509a6bd2f420ebdef1f98edf9 (diff)
downloadamber-d6a750e0fe966516e9b799bba55fb295e124a81b.tar.gz
Add a sample Android app (#183)
Fixes #179
Diffstat (limited to 'android_sample/AndroidManifest.xml')
-rwxr-xr-xandroid_sample/AndroidManifest.xml45
1 files changed, 45 insertions, 0 deletions
diff --git a/android_sample/AndroidManifest.xml b/android_sample/AndroidManifest.xml
new file mode 100755
index 0000000..a6c1f9d
--- /dev/null
+++ b/android_sample/AndroidManifest.xml
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+Copyright 2019 The Amber Authors.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<!-- BEGIN_INCLUDE(manifest) -->
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.google.amber">
+
+ <!-- This is the platform API where NativeActivity was introduced. -->
+ <uses-sdk />
+
+ <!-- This .apk has no Java code itself, so set hasCode to false. -->
+ <application android:label="@string/app_name"
+ 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">
+ <!-- Tell NativeActivity the name of or .so -->
+ <meta-data android:name="android.app.lib_name"
+ android:value="amber_android" />
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+ </application>
+
+</manifest>
+<!-- END_INCLUDE(manifest) -->