Follow these steps to create a new Android app using the TensorFlow library and the model we built previously:
- In Android Studio, create a new Android app named QuickDraw, accepting all the defaults. Then in the app's build.gradle, add compile files('libs/libandroid_tensorflow_inference_java.jar') to the end of dependencies. Create a new assets folder as we did before and drag and drop quickdraw_frozen_long_blacklist_strip_transformed.pb and classes.txt to it.
- Create a new Java class called QuickDrawView that extends View, and set the fields and its constructor as follows:
public class QuickDrawView extends View { private Path mPath; private Paint mPaint, mCanvasPaint; private Canvas mCanvas;