Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
7 votes
2 answers
3k views

Performing long running operation in onDestroy

I have a "long-running" cleanup operation that I need to perform in onDestroy() of my Activity. What is the best way to do this? If I use a Thread to do this, my onDestroy() will return immediately; ...
curioustechizen's user avatar
1 vote
1 answer
5k views

Implementing JmDNS on Android/Multithreading

I am trying to get JmDNS to work in my android program. I am able to get it to discover the devices I want, but I do not fully understand how to get the information from JmDNS to the object that ...
Sam's user avatar
  • 33