Removed getApplicationContext() from registration code