Changed getApplicationContext() to mFrame.getContext()