The code for this application can be found in your GitHub repository at https://github.com/PacktPublishing/Machine-Learning-for-Mobile/tree/master/Fritz/imagelabelling/imagelabelling.
Once you have downloaded the code open it in Android studio here you can find the code in the MainActivity.java.
To explain the whole code, it may deal more with android code. Here, you can find the explanation of the important code blocks:
Fritz.configure(this.getApplicationContext());
The preceding line in the oncreate life cycle method will initialize the Fritz framework:
options = new FritzVisionLabelPredictorOptions.Builder() .confidenceThreshold(0.3f) .build();
The preceding line will create the configuration options for the label ...