adapt android exit