Hello Abraham,

the choice to enable / disable the background service for DTN is left to the user alone. I do not know any argument to give Apps the permission to do that. If you require that the user enables the daemon, you can ask him to do that and then open the daemon preferences.

Kind regards,
Johannes Morgenroth

Am 28.01.2014 18:47, schrieb Abraham Martín:
Ops, I found why it isn’t working.  It checks if the SharedPreference “enabledSwitch” is true before starting the process. I can’t change it from my app as the SharedPreferences are in private mode. Is there any way to change the value of “enabledSwitch" through the API? 

Thanks a lot,

Abraham.