Refme interview question

How to avoid blocking the UI Thread?