Change Main class into an Android Activity.