Hi Damien,
Thanks for your time & reply, your help would definitely help me in getting the project up & running. Currently, I have the NDK set up and have a sample application which uses JNI and native code. I have the main activity which uses JNI. The methods onStartCommand( ... ) & onTaskRemoved( ... ) are used to create the services & when the service is stopped respectively, should I be creating the services in the main activity or where ? May be I'm asking too basic questions, but I want to be sure that it's the right way to do it.
Can you please help me in understanding - 'write a C routine that starts the daemon using JNI exports. Then import that and execute it in the above Service callback method. Make sure you clean up by creating a JNI C method to clean up the C library and call it in onTaskRemoved( ... ) method '. (sorry that I didn't get exactly the meaning).
And finally, it would be very helpful if I can get some example on either Github or in some other repository. It would be really helpful.
Thanks for your time again.
Thanks,
Raj.