My solution is broken up into two main activities:
-
MainActivity.java which has all the logic for location finding (borrowed from SectionLocationActivity), geo-distance calculations, Toq setup/installation, DeckOfCards management (inspired by SectionToqActivity), resource management, and event triggering, as well as serving as a central hub for calling other tasks and activities.
-
DrawingActivity.java which has all the logic for drawing and building up the bitmap in DrawingView.java (inspired greatly from SectionDrawingActivity), and uploading/compressing said bitmap into a form fit for Flickr (made possible through the use of files found in SectionFlickrActivity).
- Detects if you are within 50 meters of Sproul Plaza.
- Sends you a Toq Notification with drawing instructions.
- Creates a card in the app that opens up the drawing portion of the app on touch (only accessible via the card touch).
- Drawing view shows clear submission and erasing buttons, with more options for stoke size and a real-time, full RGB color editor in the app's settings.
- On submission, uploads drawing as PNG to flickr with the tag "cs160fsm"
- After upload is successful, creates a new card on the Toq app that shows a photo also tagged with the tag, "cs160fsm."
Comments