Android Daemon type functionality
<p>If I spawn a thread via AsyncTask from the UI thread, is this thread killed when the UI thread terminates?</p>

<p>My AsyncTask (spawned fom UI) performs operations and then calls the Notification Manager as appropriate (part of my applications functionality). This works well, but notifications cease when the application exits, and I am assuming this is because the UI thread has terminated, therefore so do the children.</p>

<p>I did consider a service (assuming initially it would perform similar to a daemon) but then read that these run on the UI/main thread so would not be persistent across the UI thread termination.</p>

<p>My question really is how can I get the functionality of a daemon spawned from an Android app? I don't need permissions outside the spawning parent process, and it doesn't need to be persistent across reboots.</p>

<p>POSIX API'ish threads through the NDK or am I completely wrong?</p>

<p>Only spent a couple of days with Android so still trying to feel my way around. Many thanks!</p>
