Implements all that stuff for Android