1
2
public class MyAndroidService extends Service {
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
#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.