Answer the question
In order to leave comments, you need to log in
Getting data from Service in Android
There is MainActivity and MyService, I need that when onDestroy() MainActivity is closed, the service with input data is launched and works in the background until I start the program again, then in "onCreate" check if the service is running, then get data from it and stop the service. How to do it right?
Answer the question
In order to leave comments, you need to log in
startandroid.ru/ru/uroki/vse-uroki-spiskom.html
Lessons from 92 onwards.
Just hope that onDestroy gets called - I wouldn't.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question