onStartCommand differs when called by alarm manager and setActivity