Adjusting to conform to android signature to avoid method not found errors