I am new to mobile development and still have much to learn. I have written an Android application that collects user data in SQLite database locally. I would like this data to be uploaded separately to users actions, which means:
I would like to know, what is the best approach to do this - is it any kind of service running in the background, or anything else? I have read about services only in tutorials, so I don't know exactly how to deal with them and if I should even bother writing them, to achieve what I have mentioned above?
Regards.
Actually services are not so necessary for that (Example: if you have only one activity). Service helps you keep off thread work apart of activity lifecycle. Ok. Now, decision of your problem step-by-step: