docs: Add CubeWithLayers to Android section
authorCody Northrop <cnorthrop@google.com>
Tue, 27 Sep 2016 17:48:14 +0000 (11:48 -0600)
committerCody Northrop <cnorthrop@google.com>
Wed, 28 Sep 2016 17:41:16 +0000 (11:41 -0600)
BUILD.md

index 06dee6a..4384302 100644 (file)
--- a/BUILD.md
+++ b/BUILD.md
@@ -189,6 +189,16 @@ adb install ./tri/bin/NativeActivity-debug.apk
 adb shell am start com.example.Cube/android.app.NativeActivity
 adb shell am start com.example.Tri/android.app.NativeActivity
 ```
+To build, install, and run Cube with validation layers, first build layers using steps above, then run:
+```
+cd demos/android
+android update project -s -p . -t "android-23"
+ndk-build -j
+ant -buildfile cube-with-layers debug
+adb install ./cube-with-layers/bin/NativeActivity-debug.apk
+adb shell am start -a android.intent.action.MAIN -c android-intent.category.LAUNCH -n com.example.CubeWithLayers/android.app.NativeActivity --es args "--validate"
+```
+
 To build, install, and run the Smoke demo for Android, run the following, and any
 prompts that come back from the script:
 ```