Java code for the Mc3 Android Application