Well, since this seems to be a requested feature, the next release of the daemon and the API will include a permission to bind to a DtnManager and control the on/off switch of the daemon.
Kind regards, Johannes Morgenroth
Am 31.01.2014 17:12, schrieb Abraham Martín:
Hi all,
nice discussion. My application is a similar case to the one described by Christian. If a user doesn't want to have it activated because it consumes energy but an application decides that it is important to send a message using DTN, then this app should be able to enable the service. It is the same argument as deciding why to let an application to enable or disable the wifi or the bluetooth interface and you can do it just including these permissions on the manifest. Maybe this is the solution, creating a new permission (enable dtn) and then letting the user decide if accepting or not these permissions.
Cheers!
Abraham.