this is really puzzle me lately moment.
I'm writing a application, and part of it use ndk. there is some
function may use native thread to download file.
I want to the download thread keep run even if the application has
called onDestroy(), but will the dalvik unload the shared library at
same time? If so, I think my application stop download task at same
time.
I look up in the android-ndk groups and find this article:
http://groups.google.com/group/android-ndk/browse_thread/thread/b1fe7ac5523249f2
where fadden says the shared library is never unloaded. but here I get
a puzzle, if the shared library is never unloaded, then if I load a
lot of shared libraries. will the system goes to a memory shortage?
how dalvik manage these shared libraries when a Activity ends its
lifecycle? Can anyone illustrate it for me?