S
S
shade2016-01-09 14:12:17
Android
shade, 2016-01-09 14:12:17

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

2 answer(s)
A
Alexander Varakosov, 2016-01-09
@shadek

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.

S
shade, 2016-01-09
@shadek

Alexander Varakosov sounds good in principle, is there a ready-made example?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question