Main navigation

Reader Interactions

Comments

    • Hi
      You need to add an entry for these two activities In AndroidManifest.xml

      Thanks
      Android Tutorial Point Team

  1. Please how can i add other user details like address, phone number to the user account from here

    //create user
    auth.createUserWithEmailAndPassword(email, password)
    .addOnCompleteListener(SignupActivity.this, new OnCompleteListener() {
    @Override
    public void onComplete(@NonNull Task task) {
    Log.d(TAG,”createUserWithEmail:onComplete:” + task.isSuccessful());
    progressBar.setVisibility(View.GONE);
    // If sign in fails, Log the message to the LogCat. If sign in succeeds
    // the auth state listener will be notified and logic to handle the
    // signed in user can be handled in the listener.
    if (!task.isSuccessful()) {
    Log.d(TAG,”Authentication failed.” + task.getException());

    } else {
    startActivity(new Intent(SignupActivity.this, UserActivity.class));
    finish();
    }
    }
    });

    • Hi Nick

      The current Firebase Authentication API supports a fixed set of basic properties—a unique ID, a primary email address, a name and a photo URL—stored in the project’s user database, that can be updated by the Android app. You cannot add other properties to the Firebase User object directly, however you can store the additional properties in the Realtime Database that firebase supports or in the app DB itself for current user.

      We will soon cover a tutorial on working with the Firebase Realtime DB, till then you can store the Additional attributes in the SQLite DB.
      Have a look at the following tutorial
      https://www.androidtutorialpoint.com/storage/android-sqlite-database-tutorial/

      Thanks
      Android Tutorial Point Team.

    • Hi Nick

      The current Firebase Authentication API supports a fixed set of basic properties—a unique ID, a primary email address, a name and a photo URL—stored in the project’s user database, that can be updated by the Android app. You cannot add other properties to the Firebase User object directly, however you can store the additional properties in the Realtime Database that firebase supports or in the app DB itself for current user.

      We will soon cover a tutorial on working with the Firebase Realtime DB, till then you can store the Additional attributes in the SQLite DB.
      Have a look at the following tutorial
      https://www.androidtutorialpoint.com/storage/android-sqlite-database-tutorial/

      Thanks
      Android Tutorial Point Team.

      • After storing in Firebase Database, it is possible to link those details with the user email created?

        • Hi Nick,

          Sure it is you can use code similar to following to get the User Id. Then create a table in the
          Firebase Real Time Database with UID as primary key.

          FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();
          if (user != null) {
          for (UserInfo profile : user.getProviderData()) {

          String providerId = profile.getProviderId();

          // UID specific to the provider
          String uid = profile.getUid();
          }
          }

          However we will be covering this topic in detail later.
          Till then stay tuned. Don’t forget to like our facebook page http://www.facebook.com/androidtutorialpoint and also subscribe to our blog to get the latest updates right in your inbox.

          Thanks
          Android Tutorial Point Team

  2. I had a problem not particularly related to Android but it’s a part of app I have been working on.

    I was making engineering subjects database in google firebase table that had following schema and entries : -Columns:Degree,Stre­­a­m,Semester,Subjec­t­ (All columns are of string[varchar] datatype while ‘semester’ column is integer datatype) -Entries eg:
    1)Btech;ECE;1;Engine­­­ering Mathematics
    2)BE;Mechanical;5;Fl­­­uid mechanics
    3)Btech;CSE;3;Web dev
    Issue:I am unable to get unique entries in each column by quering it. Just like in mysql we have : “SELECT DISTINCT Degree from ” would give back :”Btech and BE” I searched for solutions at google forum and stackoverflow, but it didn’t help for getting a DISTINCT alternative in firebase. Although a work around method would be possible but i was thinking if we had something direct for that for getting faster response/execution of query. Can u help me with that?

  3. You are making android firebase tutorial series that is awesome and it will help us to get all the content of firebase from your blog.

  4. Hey there! This is kind of off topic but I need some help from an established blog. Is it tough to set up your own blog? I’m not very techincal but I can figure things out pretty quick. I’m thinking about setting up my own but I’m not sure where to begin. Do you have any tips or suggestions? Thank you

  5. I have been browsing online greater than 3 hours these days, yet I by no means found any attention-grabbing article like yours. It is beautiful worth enough for me. Personally, if all web owners and bloggers made excellent content material as you probably did, the net will probably be much more helpful than ever before.

  6. Great tutorial. But not great that I was forced to sign up for a newsletter I didn’t want and certainly won’t read… congratulations on capturing my email. Now what?

  7. “Great Blogpost! Hello Admin! Thanks for this article, very good information, I will be_ forwarding this to some friends, if you’re ok with that. Greetings from Germany!”

  8. Hi I’m started using firebase recently and been facing a strange Problem. No matter how long I send the message , On user device it only shows 1 line. what is the problem here and how can I resolve it??

Leave a Reply

Advertisment ad adsense adlogger