Click here to Skip to main content
14,454,912 members
Rate this:
Please Sign up or sign in to vote.
See more:
 Hi im making a password manager in android studio and storing all the data using firebase. The issue im stuck on is creating the registration form. If i simply had one activity with all information on one page i would be able to set this up. However ive got too much infomation to have it on one page so it would look messy. Instead ive created a single activity and have three fragments. After each page the user will click continue until the final page where the user will sign up and all of the data from each fragment is sent to the database as one.

fragment 1 is responsible for user info e.g. name, email, phone number. fragment 2 is responsible for master password and fragment 3 is responsible for shared secret.

Thanks for any help / ideas.

What I have tried:

having not used fragments im abit lost with the whole process i know you can use interfaces or viewmodels to send data back to the activiy. But what would be the best approach be? ive initialy set up interfaces on each fragment but im unsure how to call these in the activity and then create a method which takes the information from each interface put it into one then send it the database.
Updated 14-Feb-20 6:57am
David Crow 17-Feb-20 13:45pm
Most data can be sent through an Intent. You can also use preferences. Have you tried either of those?

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

curtis1997 14-Feb-20 12:30pm
thank you for your reply, i have looked on here previously but i am still stumped
Richard MacCutchan 14-Feb-20 12:46pm
This forum is for specific technical questions, there is not space (or time) to provide anything more than a link to the documentation. If you do not understand how to use Fragments then you need to search for samples and tutorials.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100