BundleButler: Simplifying arguments and savedInstanceState

To make proper use of both Fragment arguments and saved instance state in Android, I found myself frequently writing a great deal of the same boilerplate code. Most of that code looked like this: public class EditEntryFragment extends Fragment { private Entry entry; private String title; private boolean hasAgreedToTerms = false; public static EditEntryFragment createInstance(Entry currentEntry, String title) { EditEntryFragment fragment = new EntryEditFragment(); Bundle args = new Bundle(); args.putParcelable("entry", currentEntry); args. [Read More]

C2DM Prototype

As part of my current practicum project at CM-SV, I was asked to put together a prototype that demonstrates the capabilities of Google’s Cloud To Device Messaging (C2DM) service, or push notifications. What follows was the result: https://github.com/patrickbaumann/c2dmprototype c2dmprototype consists of two applications: a relatively vanilla Django server application (the Cloud part of C2DM) and an Android 2.2 application (the device part of C2DM). The demo aims to demonstrate the basic pieces of a “push to talk” application by allowing a user to send audio messages to devices by pushing them instead of requiring the battery-limited phone to poll the server. [Read More]