top of page
Search

Layout for Registration

  • Writer: shusrushabezugam
    shusrushabezugam
  • Feb 27, 2019
  • 2 min read

Updated: Apr 24, 2019

In project, there two main users i.e., Valet and Customer.

Initially I thought of creating specific registration layout to each user and added code respectively for ValetRegistration.class and CustRegistration.class and created layouts for both users.

But I felt that it would be redundant to use same functionality in two different classes. Later, I came up with an idea for creating field called type for categorizing both users.

During the registration time a user can type in either "Valet" or "Customer". I have chosen to use text instead of radio buttons.Because, In case of ratio buttons there is a chance for choosing a wrong user.



Initially, I have written code to authenticate using if and else loops. But, later I realized that I have to save the data in to database.I thought of use SQL lite database for storing data. I have tried using this database and came up with an idea to use a cloud database which would be better option for saving data in cloud.

I learned about the Progress Bar concept while creating registration page.

I learned about Toast concept to display text on screen when an on click event listener.

I have explored many relational databases and NoSQL databases. I chose to use NoSQL database in my project.

Finally came to decision of using Firebase database. I got to explore many features of firebase. Looking forward to learn more about the Firebase.I have learned that a single field can reduce lots of redundant code. I have chosen to authenticate users Firebase Authentication.I learned and explore many new things like Firebase and made major changes to my project so far by reducing lots of redundant code. I took more than 4 days for setting up the project and learn to solve many errors regarding syncing. I got to know about gradle builds.


References:


 
 
 

Recent Posts

See All
Learnings from Building Project

In this project, I have tried to integrate concepts from all courses taken by me in my Master's. I learned and implemented Java as well...

 
 
 

Comentários


©shusrushabezugam

bottom of page