From c5a91eb26719926b01aeb81c45d0f8869b00385c Mon Sep 17 00:00:00 2001 From: Liangliang He Date: Tue, 26 Jun 2018 17:05:29 +0800 Subject: [PATCH] Update README.md --- mace/examples/android/README.md | 33 ++++++++++----------------------- 1 file changed, 10 insertions(+), 23 deletions(-) diff --git a/mace/examples/android/README.md b/mace/examples/android/README.md index 48eb50e6..673f4e96 100644 --- a/mace/examples/android/README.md +++ b/mace/examples/android/README.md @@ -1,27 +1,14 @@ Android Demo ------------- ------------- - -Try it by downloading the [APK](https://cnbj1.fds.api.xiaomi.com/mace/demo/mace_android_demo.apk). +============= How to build --------------- -* Build native library, please refer to [docs](docs) for more information. - ``` - # Execute following commands from the project's root directory - python tools/converter.py build --config=docs/getting_started/models/demo_app_models.yaml - cp -r build/mobilenet/include/ mace/examples/android/macelibrary/src/main/cpp/ - cp -r build/mobilenet/lib/ mace/examples/android/macelibrary/src/main/cpp/ - ``` -* Build APK - * Import the `mace/examples/android` directory as a new Android Studio project and select `install run` - * Or build it with gradle: - ``` - cd mace/exampls/android - ./gradlew installAppRelease - ``` -* You can also build native library and APK with `mace/examples/android/build.sh` - ``` - cd mace/exampls/android - ./build.sh - ``` + +```sh +cd mace/exampls/android +./build.sh +``` + +Pre-built APK +-------------- +Pre-built Android APK can be downloaded [here](https://cnbj1.fds.api.xiaomi.com/mace/demo/mace_android_demo.apk). \ No newline at end of file -- GitLab