updated Android API to follow changes made in the iOS API