Just an update. Hopefully my previous two posts on how I solved the problems I encountered were useful.
At this point while I was able to run my sketch in Android emulator mode, I couldn't get Processing to connect to my tablet.
The reason Processing couldn't talk to my tablet is that for folks who are on WIndows, you need to download and install USB drivers from your tablet's manufacturer for the Android SDK (ADB) to use. The information on that part of the process can be found here:
http://developer.android.com/tools/extras/oem-usb.html#Drivers
At this point I've located and downloaded the drivers for my Samsung tablet (Samsung's name for this is the Kies software). This is also the software that is used to update the tablet's firmware. The kies install takes some time to complete. In fact the Android SDk install is lightning fast by comparison. And to make matters worse, on starting up Kies it informed me that a newer version was available so I had to go through a time consuming update (evidently everyone downloading Samsung Kies will encounter this issue).
Getting the Samsung Kies software to talk to my tablet required some troubleshooting which involved Kies reinstalling its drivers and rebooting. Once Kies recognized that my tablet was connected, I decided to test Processing's ability to connect without completing the steps about installing the USB drivers listed at the URL I referenced above.
Starting up my sketch, I was able to run it on my Galaxy Tab 2. So the key issues for me to get Processing to run an Android app on my tablet were
- on my Samsung Galaxy Tab 2 tablet, setting the Developer Options -> USB Debugging to "checked"
- manually downloading the Processing Android library from http://android.processing.org/AndroidMode.zip
- unzipping the Android library into the /modes subdirectory of my sketchbook directory (see File -> Preferences: Sketchbook location to see where this directory is located on your system)
- installing the Android SDK using the instructions found here: http://wiki.processing.org/w/Android
- when first attempting to run Processing in Java mode, telling Processing where my Android SDK was installed. (Processing stores this in your preferences.txt file, in my case as:
android.sdk.path=C:\Program Files (x86)\Android\android-sdk
- downloading and installing the Samsung Kies software and verifying that it was able to communicate with my tablet.
Note that while I was at it I also updated my tablet's firmware.
The reason I am doing this is that I am enrolled in the Coursera class "Creative Programming for Digital Media & Mobile Apps". Their forums are overrun by posts from people having multiple issues associated with getting Processing to work as an Android development platform.
Best Regards, Jim