A
A
Alexander2014-03-12 21:48:42
Java
Alexander, 2014-03-12 21:48:42

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

1 answer(s)
A
Alexey Akulovich, 2014-03-13
@UserAlexandr

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 question

Ask a Question

731 491 924 answers to any question