Instructables

Pee to Check-In to Foursquare - Mark Your Territory

FeaturedContest WinnerContest WinnerContest Winner

Step 10: Hacking the Code

Picture of Hacking the Code
My source code basically consists of hacking together several different systems (Arduino, Android, Foursquare). You can access all of it here:
https://github.com/quitmeyer/Mark-Your-Territory---Pee-to-Check-In-to-Foursquare

I got a lot of help from some really great examples (and got really thrown off by some bad ones). You can look through my code, or browse some of these great samples yourself:

Arduino ADK Firmware
http://www.iheartrobotics.com/2011/07/arduino-mega-adk-setup-notes.html
This was incredibly helpful for getting started with the ADK, as the "official" example code only worked if you had a very specific setup on your board. This serves as a much better "Hello World" for working with the ADK.

ADK Android Example
http://developer.android.com/guide/topics/usb/adk.html
This is the official example that Google released. You can hack it up and get it to do what you want!

Using Foursquare with Android
http://www.londatiga.net/featured-articles/how-to-use-foursquare-api-on-android-application/
This guy is great and even answers your questions about his code!

GPS and Android
http://www.firstdroid.com/2010/04/29/android-development-using-gps-to-get-current-location-2/
Nice simple way to access your GPS coordinates
 
Remove these adsRemove these ads by Signing Up