Add states example for android

First contribution to android samples??? :P
Why are we using an instance variable here? It looks like a local variable would work.