some android helper function for ti.