Run code in background thread in Android service

1
2
public class MyAndroidService extends Service {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Normally an Android service runs in the main UI thread, this means that if you want to run code in background in a service you can either use a Java thread or you can switch to using an Intent Service.

#android #java #code #hint #threads #service

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.