Create a deamon process in android
For a project in android that I have, I need to make the server as a daemon process to process the request in the background even if the app is closed.
Is there a way to create a daemon process. If so, it will be killed by the application on exit. or How to kill daemon process / threads in android.
May I have a syntax example in regards to creating a Daemon process.
If A is the main process of my application and B is my daemon server process. If A is killed and B received a request that calls some functionality of A, then A main will start or what happens
source to share
if i get it right; you are looking for Android services and here's what can help you:
http://www.tutorialspoint.com/android/android_services.htm
and yes, there are many ways to turn off the service, see what tutorials for more information.
source to share