This app works with the Qualcomm Toq. If you are within 50 meters of Sproul Plaza, the app issues a draw request by sending a notification to the Qualcomm Toq. I used a LocationListener to receive location updates every 5 seconds as implemented in Mari's SectionLocationActivity.
The notification on the Qualcomm Toq has the name of a protestor. When the user opens the protestor's card, the drawing activity opens. I added a DeckOfCardsEventListener that starts the drawing activity to the DeckOfCardsManager. Each of the protestor cards is set to receive events.
The user draws the specified drawing and submits the drawing to Flickr with the tag "cs160fsm". I very slightly modified the code from this tutorial for the drawing activity: http://code.tutsplus.com/tutorials/android-sdk-create-a-drawing-app-essential-functionality--mobile-19328
I used FlickrjActivity to submit the drawing with the tag. Then a new card with an image with the tag "cs160fsm" fetched from Flickr is pushed on to the Toq's deck of cards. I used code from Andrew's FlickrTest to fetch the image.
Comments