fix order between activities
register alarm receiver when mainactivity resume