E
E
eellazy2015-11-05 15:10:13
Java
eellazy, 2015-11-05 15:10:13

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

3 answer(s)
O
Oleg Gamega, 2015-11-05
@gadfi

depends on your architecture, but purely functionally, no matter
what, I would do it on fragments

I
Ilya, 2015-11-05
@FoxT

Activate is better.

T
Tiberal, 2015-11-05
@Tiberal

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 question

Ask a Question

731 491 924 answers to any question