Added onActivityResult method for android