This is the classic lights out right? http://en.wikipedia.org/wiki/Lights_Out_(game)
307 karma · joined April 1, 2013
Edit: the entire SMS/email apps for AOSP are open sourced, yes it does not have all the features that the OP wants, but you can get very far with Android's documentations and just reading the source codes.