Check Whether You Are Running on the UI Thread