Answer the question
In order to leave comments, you need to log in
How to implement Login Activity?
Hello! There is a start Activity in which the user is prompted to enter a username and password. At the bottom there are two buttons "registration" and "restore" how best to implement the functions? When you click on the button, open an Activity or a fragment? How right?
Answer the question
In order to leave comments, you need to log in
depends on your architecture, but purely functionally, no matter
what, I would do it on fragments
If I were you, I would create one common authorization activity, where by default the login / password entry fragment is launched. And when you click on the recovery / registration buttons, he substituted the necessary fragments. Navigation will be easier, and fragments will be faster than activation. In general, try to make activities for a large group of tasks, and use fragments to display subgroups. Easier IMHO.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question