android: rework the EVENT_IDLE generator