Follow the instructions below to install the SDK

Device activation

Install our Android Demo, follow the prompt to enter the activation code to activate the device, and if the activation is not successful, check according to the error code returned.


software Explanation test version
Android SDK SDK download >= API 22 (Android 5.1)
Android Studio Android Studio download  

Demo source code compile and run

We have integrated the model, jni library( and java api(dface.jar) into the demo project, so we can directly open the example/android/dfaceCameraDemo project with android studio to compile and run. Because the Gradle network synchronizes the local library, it will be slower to open for the first time.


  • We put the model in the app/src/main/assets/normal_binary directory, and the demo will automatically copy the model file to the /dface directory of the sd card when init start.
  • Demo local database using sqllite, /dface/db/demo.db on sd card.
  • The JNI library( is placed under app/src/main/jniLibs/armeabi-v7a
  • The JAVA API(dface.jar) package is placed under the app/libs directory

Upgrade and migration

  • Replace app/src/main/assets/normal_binary directory
  • Replace app/src/main/jniLibs/armeabi-v7a directory
  • Replace app/lib/dface.jar