Adapt for android sdk