@Retention(value=RUNTIME)
public @interface OnBindService
This method is the proper place to start something like a network request or register a listener on the Service.
For example:
@DiffSectionSpec
public class MyChangeSetSpec {
@OnBindServices
protected void onBindService(
SectionContext c,
SomeService someService,
@Prop SomeProp prop) {
myService.startDoingSomething(prop);
myService.registerListener(...);
}
}