|Auto start bundles programmaticly [message #1076536]
||Wed, 31 July 2013 14:52
| Simon Goodall
Registered: July 2009
I wish to be able to mark a bundle as auto-start programatically.|
My bundle has a service which is to be enabled when a user ticks a box
in a preference page and to be disabled when it is unticked. I have some
code to register/unregister a service on a preference change in the
bundle activator and to start the service when the activator starts.
However if the bundle is not started, then the activator code will not run.
I am looking to also modify the bundle start behaviour when the
preference changes. It looks like I need to generate a touchpoint
instruction to change this value. However I've not been able to put all
the pieces together to work out how to execute this instruction. Most
examples I have found are related to installing a new bundle, not
modifying an existing one.
Can someone point me towards how I would go about this?
Is there a better way to do this? I am looking to avoid adding the
autostart to my .product configuration.
Powered by FUDForum
. Page generated in 0.03351 seconds