About Activities in Android / Java

0

Good evening. My doubt is simple.
My app has a system in which I open 5 activities to register (first to activity 1, then to 2 and so on. imagine that it is something like a windows installation where there are several windows with "next") > From the fifth activity it returns to the first, and when the user needs a new registration, the process happens again. This is the code I use to pass between activities:

Intent novaActivity = new Intent(getApplicationContext(), proximaActivity);
                novaActivity.putStringArrayListExtra("activities", activitiesSelecionadas);
                startActivity(novaActivity);
                finish();

Is there any possibility that the application will get very heavy after multiple registrations?

    
asked by anonymous 24.09.2018 / 04:04

1 answer

0

From what I see the ideal architecture for this process (assuming it is all part of the register) is to have only one Activity and 5 fragments. This way you can manage the layouts, scalability and information (which can be all in the activity) better.

    
25.09.2018 / 18:02