• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

An advice about how to design a app

DavidD1

Newbie
Hello, I'm considering an app with these steps

Home > > category selection > > first step > second step > final result

And my question is whether aca should do the following:

An activity for each particular category, one for Step 1, one for Step 2 and one for Step 3 ?

Because if I have 5 categories it would be 15 activities with their respective particular data

Or should you use a local db type sqlite or firebase ? maybe to make the steps


If it's my first app but I have experience in php and mysql that's why I'm asking how to make it dynamic so it's easier to adapt/maintain

The app has only static information, this won't be changed
 
Last edited:
If you want to implement a stepped UI, (also known as a 'wizard') using one Activity, you can use a Fragment based approach. Fragments are a way of dynamically changing the UI, by replacing layout views. You'll still need 15 different layouts, but it's probably less expensive than the equivalent Activity based solution.
The database doesn't really come into the design and layout implementation for the UI.
You first port of call will be to learn about using Fragments.
 
hi, thanks for the advice but i search a tutorial in youtube and the design its the same

he finish with 1 java class (and repeating a lot of code) for each task and 1 layout for each activity
 
That's fine, but from your initial post, I got the impression that you didn't want to use separate Activities.
With Fragments, you don't need to implement multiple Activities, a tabbed layout implements the approach of several Fragments in one Activity, using the FragmentManager.
But either way works.
 
Back
Top Bottom