Skip to content
This repository was archived by the owner on Nov 24, 2019. It is now read-only.

Conversation

@AppWerft
Copy link

@AppWerft AppWerft commented Jun 4, 2015

Adding of parameter itemId to alarm service.
Example:

AlarmManager.addAlarmService({
      service : 'de.appwerft.eppendorf.LabortimerService',
      requestCode : alarm.eta,
      second : alarm.duration,
      forceRestart : true,
      itemId : '' + alarm.id
});

and now you can read this parameter inside the service:

var itemId = Ti.Android.currentService.getIntent().getStringExtra('itemId');
var Labortimer = new (require('adapter/labortimer'))();
Labortimer.doAlarmfromService(itemId);

Adding of parameter itemId to alarm service
String itemId = (String)args.get("itemId");
intent.putExtra("itemId", itemId);
}
intent.putExtra("test", "TEST");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should not contain "test", indentation incorrect.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants