--- /dev/null
+<?xml version="1.0"?>\r
+<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.CubeWithLayers" android:versionCode="1" android:versionName="1.0">\r
+\r
+ <!-- Allow this app to read and write files (for use by tracing libraries). -->
+ <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>\r
+ <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>\r
+ <uses-permission android:name="android.permission.INTERNET"/>
+\r
+ <!-- This is the platform API where NativeActivity was introduced. -->\r
+ <uses-sdk android:minSdkVersion="23" android:targetSdkVersion="23"/>\r
+\r
+ <!-- This .apk has no Java code itself, so set hasCode to false. -->\r
+ <application android:label="@string/app_name" android:hasCode="false" android:debuggable='true'>\r
+\r
+ <!-- Our activity is the built-in NativeActivity framework class.\r
+ This will take care of integrating with our NDK code. -->\r
+ <activity android:name="android.app.NativeActivity" android:label="@string/app_name" android:exported="true">\r
+ <!-- Tell NativeActivity the name of or .so -->\r
+ <meta-data android:name="android.app.lib_name" android:value="Cube"/>\r
+ <intent-filter>\r
+ <action android:name="android.intent.action.MAIN"/>\r
+ <category android:name="android.intent.category.LAUNCHER"/>\r
+ </intent-filter>\r
+ </activity>\r
+ </application>\r
+\r
+</manifest>\r
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="NativeActivity" default="help">
+
+<property name="cubeWithLayersDir" location="../libs-with-layers" />
+<property name="cubeDir" location="../libs" />
+<property name="layersDir" location="../../../build-android/libs" />
+
+<echo>CubeWithLayers: Creating libs-with-layers</echo>
+<mkdir dir="${cubeWithLayersDir}"/>
+
+<echo>CubeWithLayers: Copying libs from demos/android</echo>
+<copy todir="${cubeWithLayersDir}">
+<fileset dir="${cubeDir}"/>
+</copy>
+
+<echo>CubeWithLayers: Copying layers from build-android</echo>
+<copy todir="${cubeWithLayersDir}">
+<fileset dir="${layersDir}"/>
+</copy>
+
+<!-- Point ndk-build at the libs-with-layers common dir -->
+<echo>CubeWithLayers: Overriding native.libs.absolute.dir with ${cubeWithLayersDir}</echo>
+<property name="native.libs.absolute.dir" location="${cubeWithLayersDir}" />
+
+</project>
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2013 The Android Open Source Project
+
+ 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
+
+ http://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.
+-->
+
+<!-- This file contains resource definitions for displayed strings, allowing
+ them to be changed based on the locale and options. -->
+
+<resources>
+ <!-- Simple strings. -->
+ <string name="app_name">CubeWithLayers</string>
+
+</resources>