Escolar Documentos
Profissional Documentos
Cultura Documentos
Introduction
In todays lab you will learn how to run your sketches on the Android operating system. The instructions provided should work on Windows XP in the DoC lab machines, allowing you to run your sketches in an Android emulator. Due to some quirks with the lab machine setup, it is not possible to send sketches directly to the emulator from Processings IDE, but a workaround is provided in the following instructions.
Now select run in emulator from the Sketch menu. This will then trigger processing to generate a special APK le, which is the packaging format used for android apps. It will take some time and will probably result in an error such as emulator: WARNING: Unable to create sensors port: Unknown error. Thats ok... we are now going to manually install the package and run it on the emulator.
7. It should download your apk le. You can then install it by clicking the menu button selecting more / downloads then clicking on the apk le in the list. If something goes wrong, double check the address you typed in your main Windows XP web browser. 8. Once installed, open the app and there it is ... running really slowly. See further reading to nd out how to x that, but note youll need to do it on your own machine. 9. To repeat, just re-export from Processing, put the apk onto the G: drive and hit that address again from the emulator.
Further reading
1. The main wiki page for Processing on Android: http://wiki.processing.org/w/Android 2. Want to run the sketches at full speed? Install android-x86 under virtual box for a much faster Android emulator: http://androidspin.com/2011/01/24/howto-install-android-x86-22-in-virtualbox/ Note that you can use the procedure above to install your sketches.