Simple Login App using Database Tutorial (PART 8) - Retrieving User Information (Android Studio 3.0)

preview_player
Показать описание
In this video, we will retrieve the user profile information from the Firebase Database and display it in a profile activity using the latest Android Studio 3.0! Also, we see how you can change password and email too!

Previous Videos:

If you liked this video, give it a big thumbs up. If you didn't like something, do comment below so that I can improve upon it.

Do subscribe so that you don't miss on any of my future videos. Thank you guys for watching, happy learning :)

***** Other Tutorial Videos *******

Follow me on:

Keywords:
Retrieving Data from Firebase Database
Retrieving User data from FIrebase Database
Retrieving User profile from FIrebase Database
How to create a profile activity
How to make a user profile app
Android Studio 3.0
Android Studio 2.3.3
Simple Login App
Professor DK
Simple Timetable App
Tutorials
Android Tutorials for Beginners
Рекомендации по теме
Комментарии
Автор

The app and code in the video are tested and perfectly working. However, I have seen that some of you are facing difficulties and getting some errors, so here is a beginners guide to debugging:

1) Error: Null object reference Solution: This always means you have given the wrong XML ID, just correct it

2) Error: User Credentials not sent to Firebase Solution: Check if you have added all dependencies else do the following:
In Android Studio, go to Tools > Firebase. Click on it. A new tab will open. Click on Authentication > More Info > Email and Password Authentication Link. Another tab will open. Check if the first step shows connected to the database. If not, just click on it and you should be asked for Firebase credentials and on entering that, you will get connected :)

3) Error: App is crashing Solution: Check your logcat section present at the bottom of Android Studio, it will tell you where you have made the error or what caused the error. Just go to that line then and debug.

4) Error: App crashing in emulator: This happens because your emulator doesn't have the latest google play store services. Either update play store or just run it on normal phone

Also, some things to note:
1) Every new user must have unique email ID
2) The password length must be more than 8 characters long
3) Internet must be ON

Hope this helped everyone :)

ProfessorDK
Автор

sir i'm really thankful for the tutorial with proper explanation of the code (why we required, what will do), everything is clear .
Sir give tutorial with one objective on developing an app.

len
Автор

Hi Sir, when i press my profile and my app will crashing, can help you me ?

sheong
Автор

Excellent! It works perfectly for me!

rwill.
Автор

DatabaseReference databaseReference =

is line me error aa rahi he jab logout karte he .
app stop opening something like that.

aur reason aisa kuch de raha he ki jab logout press karte to firebase me se signout ho jata he to uper vale line me firebaseAuth.getUid() is me null ajayega

FoundedBy_India
Автор

Great video as always.. thaks for your sharing

rcpangeran
Автор

My app is crashing before even it starts running, I mean it gets installed but when it starts to open the app it crashes it started after I performed part 8 before it was working all fine... please help.
It's not prompting any error in build process, that means its not its a logical error but I cant pinpoint where

atharvapatkar
Автор

My App is working fine but there is a glitch regarding the database retrieval. I have created two Profile Section in my App, one in the menu.xml & second in the navigation drawer. But whenever i'm clicking on the Profile Section, the page opens up for like 4-5 seconds before it crashes down. It is not showing any data from the database rather the following error is shown in my logcat. FATAL EXCEPTION: main
Process: com.example.android.amihost, PID: 9995
Attempt to invoke virtual method 'java.lang.String on a null object reference
at
at Source)
at Source)
at Source)
at
at
at
at
at Method)
at
at

gauravbhandari
Автор

Thank you teacher.
The menu is not showing on my user profile activity. How do I add it on this activity? Can we create a function of method that we can call from an activity when we need the menu?
thanks

kali-fr
Автор

hi, can I know why my profile page doesn't show the image? is there any possible error from my side? the project is working perfectly with no error

klkdz
Автор

Hello DK if I have to insert data in different categories like fruits, vegetables and bakery, then what should be the insert code?

punjabweb
Автор

Attempt to invoke virtual method 'java.lang.String on a null object reference
at
can you please solve this why wrong. i can understand and stack here

kanamachi
Автор

sir, its showing constructor"userProfile " never used. profileActivity file is not reading the userProfile class properly, what should i do?

gauravsaini
Автор

Hi! I am trying to implement this, but the app crash and I get this errors:
Attempt to invoke virtual method 'java.lang.String on a null object reference
at
Could you give me some help?

denisamarginean
Автор

when i click data in fire base i don't see anything i see just a video introducing firebase any help?

manalbenchrif
Автор

Sir do videos on how to implement maps in android app and post it.

Combatforce
Автор

if we have multiple users and want to get login with firebase id we dont want to add any radio group or spinner for specifying...how can i implement the logic?

noorulain
Автор

Hi professor, I have created till 9th part till (Updating User Info) as per link your codes as it is. but when i run it my fire base data not showing in profile page and it not staying and automatically get out to Secoundactivity page Error Showing *(Unfortunately, this app has stopped) link this and so many button Error also showing like this... please provide me the solution to it.

onlineoffersalert
Автор

Sir please make a video on fetching all details of a multiple user and then show in list view.

sudharmajain
Автор

sir i did not disabled thee sendemailverification, but apart from that i have coded exacly the same as you did.but my app is crashing.

vikramnayak