An Activity for each action or several actions in the same Activity?

Asked

Viewed 52 times

0

I’m having doubts about how to use the Android Activity.

Use as a controller, going through everything that will be managed from model, or make one for each "screen"?

Example: I have the home screen that chooses the action, A Screen that Creates Event, A screen that lists Events, A screen that shows specific event.

I then create an Activity for each, or make one (Eventoactivity) that controls all requests ?

1 answer

1


The ideal is to have an Activity for each of your screens.

You can see more about how activitys work on documentation.

Do not forget to declare activitys on AndroidManifest.xml

Browser other questions tagged

You are not signed in. Login or sign up in order to post.