- Android Studio 3.2 (installed on a Linux, Mac or Windows machine)
- An Android device, or an Android Emulator
Clone the TensorFlow examples GitHub repository to your computer to get the demo application.
git clone https://github.com/tensorflow/examples
Open the TensorFlow source code in Android Studio. To do this, open Android
Studio and select Import Projects (Gradle, Eclipse ADT, etc.)
, setting the
folder to examples/lite/examples/digit_classifier/android
Connect the Android device to the computer and be sure to approve any ADB
permission prompts that appear on your phone. Select Run -> Run app.
Select
the deployment target in the connected devices to the device on which the app
will be installed. This will install the app on the device.
To test the app, open the app called Digit Classifier
on your device.
Re-installing the app may require you to uninstall the previous installations.