Refactor Android-specific polling logic.