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.

On 28 January 2014 at 17:21:25, Abraham Martín (abraham.martin@cl.cam.ac.uk) wrote:

Hello everyone,

I’m developing an Android app that uses IBR-DTN for Android. How can I start the DTN service from IBR-DTN from my application? I haven’t found it in the documentation. I have tried to call the service like this:

Intent new_service = new Intent("de.tubs.ibr.dtn.service.DaemonService");
        new_service.setAction("de.tubs.ibr.dtn.action.STARTUP");
        this.startService(new_service);

but it does not work.

Thanks!

Abraham.