I had an idea of posting to the main thread via Looper. I could try that method instead of passing Activity or putting in null checks .