Answer the question
In order to leave comments, you need to log in
What is the optimal way to organize step-by-step data collection and loading of results in Android?
Preamble:
There is a certain process of registering an event from 5-6 "stages", consisting (at different stages) of entering text, selecting images / videos, specifying various additional. parameters. You can return to a previous step or exit data collection at any time. The last step is to send everything to the server and get confirmation that everything was successful.
Problem:
At first glance, everything can be organized as a set of Activities , passing a growing object with full information to the next Activity, or using ViewFlipper and collecting information from all its Views in the last step. Each of these methods has its pros and cons.
Question:
Are there better implementations of what I need?
Answer the question
In order to leave comments, you need to log in
Implement as a set of fragments. When transitioning between fragments, onPause, etc., save data to the database. As soon as you are ready to pull the handler to the service, which is already taking data from the database and sending it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question