PR for code review

You can use the context of this activity instead. We should avoid using context instance of other activity if we are in another activity because it might get destroyed in the background and this context will become null.