Register device should be called on application class not onResum method of an activity