Use proper context when showing error dialog

Use activity context not application context as we need to draw a dialog

Change-Id: Ib57cbe2e7b818cf97dd9b3eb71d58906d0fc8afc