We need to add the MobFox SDK to the Android project now.
1. With your file explorer, locate the MobFox SDK folder where you have unzipped the JAR file:
2. Copy the
mobfoxsdk.jar
file from the MobFox SDK folder.3. Paste the copied library into the
libs
folder of the Monkey build folder. If you copied it correctly, it should look like the following screenshot:4. Now, browse within your file explorer to the
templates
folder in the Monkey build folder. It will look like the following screenshot:The two interesting files here are
AndroidManifest.xml
andres/layout/main.xml
. As they are both located inside thetemplates
folder, both are used as a base for these files whenever you rebuild the app from inside Monk. Make the next changes here and not in the regular files.5. Next, open the
templates/AndroidManifest.xml
file with a text editor.6. Add two permissions—one for using the Internet and one for reading the phone state. MobFox...