Firebase Realtime Database Tutorial for Android - Retrieving Data #2

Firebase Realtime Database Tutorial for Android - Retrieving Data #2

Simplified Coding

7 лет назад

197,957 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Bhuhpramaan dev
Bhuhpramaan dev - 26.10.2021 14:55

Issue : dataSnapshot has the object but getValue() will return null
Sol : turns out it was happening because the class (in this case Artist.class) doesn't have setter methods for the required variables
Add Setter Methods for all Variables in Artist Class

eg
public void setArtistName(String artistName) {
ArtistName = artistName;
}

Ответить
Jia Ying Chua
Jia Ying Chua - 07.07.2021 14:07

Hi, can I check if I have many data insert, my list view will not be able to show all the data. Are there any other ways I can retrieve and see all my data?

Ответить
mohamedaziz seyah
mohamedaziz seyah - 17.05.2021 05:57

thank you bro

Ответить
Balib Ramzi
Balib Ramzi - 11.04.2021 10:11

Hi sir! How to retrieve video + thumbnail from real time database in android studio?

Ответить
VANDANA MAHADAR
VANDANA MAHADAR - 06.10.2020 06:27

Sir maine firebase main web app se data liya hai realtime data base main
To vo kaise show kare android pe

Ответить
Mervin Lee
Mervin Lee - 18.09.2020 14:03

Another good tutorial but how can you make the spinner scroll smoothly?

Ответить
Kuber Sharma
Kuber Sharma - 13.09.2020 16:40

For firestore, what is the syntax to add Artist artist = artistSnapshot.getData();

Here artistSnapshot is a DocumentSnapshot and .getData() returns a Map which the Artist artist isn’t accepting

Plz help

Ответить
Darshan H N
Darshan H N - 24.07.2020 10:27

When I give the values it will inserted ,as come to follow second tutorial the value which am giving and reviewing successfully but spiner is not opening when I need to change the node (pop, suf,)..Only rock is stick on in my App ..Can you plz Sujest me to fix it?

Ответить
Papi Chulo
Papi Chulo - 13.06.2020 21:46

i wish you make it using recyclerview♥️

Ответить
SoulPrints
SoulPrints - 10.06.2020 18:20

The app worked perfectly but I didn't understand anything of how it works !

Ответить
Jake Powell
Jake Powell - 28.05.2020 20:36

good video, a question i have: why use an array adapter? what is the purpose

Ответить
Sundar S
Sundar S - 27.05.2020 09:00

I want to retrieve only user x data from Firebase database, like x user login from his id and password .

Ответить
Wais
Wais - 19.05.2020 08:55

you r not explaining a bit in detailed,
I think you just copy the code from some resource and write (paste) it.

Ответить
Mythili Inbalagan
Mythili Inbalagan - 06.05.2020 09:39

Sir, how can i display the artists in a new page and not below the place where im gettg the data?

Ответить
Himanshu Bisht
Himanshu Bisht - 12.04.2020 14:08

my app got crash sir at mainclass getvalue in Datasnapshot

Ответить
Suraksha Poojari
Suraksha Poojari - 07.03.2020 05:05

Hey, I've written the code and it's even running properly but the data already present in firebase as well as the data added is not shown in the list view. Can you say what the problem is?

Ответить
Ayesha Asif
Ayesha Asif - 06.02.2020 10:41

Great Series

Ответить
Sunaina Singh
Sunaina Singh - 31.01.2020 18:31

Hii sir
I tried all this things more than 10 time but at the time of retrieving app crashed

Ответить
jishnu p
jishnu p - 02.01.2020 22:49

Thank youuu...God bless youuu..😘😘😘

Ответить
Chandra Gunda
Chandra Gunda - 25.12.2019 20:42

Just going simply

Ответить
Chandra Gunda
Chandra Gunda - 25.12.2019 20:42

No explanation

Ответить
Luís Pereira
Luís Pereira - 18.12.2019 00:34

Are you sure onStart is the right place to put ValueEventListener? I'm having strange behaviors with data element multiplication with me.

Ответить
Dhruv Garg
Dhruv Garg - 22.11.2019 02:37

how can i add a button in every list_layout of list view....in order to transfer to a different activity using intent

Ответить
Daniel Clifford
Daniel Clifford - 06.11.2019 19:32

How do you display just the last item of the list?

Ответить
Muhammad Asad
Muhammad Asad - 03.11.2019 01:26

Your video is really useful. Please make a tutorial to perform all the join operations in firebase database.

Ответить
Metro foods
Metro foods - 31.10.2019 05:14

Bro i need two apps one for storing data and another one is retriveing data from the same database...that means if someone give information...i need to see in another app...is it possible...please replay me...

Ответить
fatima ayub
fatima ayub - 02.10.2019 10:26

so confusing, artist list artist list ... same name every where...

Ответить
Prakash Ranjan
Prakash Ranjan - 13.09.2019 17:42

how to show data from firebase in new activity??

Ответить
MOHAMMED A
MOHAMMED A - 07.09.2019 20:05

Sir! While retrieving data given child is not present in firebase means how should we diplay that database is empty add the data ??

Ответить
Philosophy of Prosperity
Philosophy of Prosperity - 10.08.2019 15:08

app doesn't show the data in List view anyone help please

Ответить
Neil Milmine
Neil Milmine - 04.08.2019 08:36

After many frustrating hours search for a simple list view you have given me the perfect answer which is easy to follow. Thank you so much for your interesting series

Ответить
Hamza Chohan
Hamza Chohan - 29.07.2019 09:27

sir is there any method to use single recyclerview + cardview for different data coming from firebase

Ответить
ABC SS
ABC SS - 18.07.2019 10:23

Hello sir, Maine code same write kiya hai but error show ho rahi hai please help me sir error com.google.firebase.database.DatabaseException: Can't convert object of type java.lang.String to type

Ответить
Arif Raza
Arif Raza - 17.07.2019 05:00

In the list view, latest items goes at the bottom.
I want it to goto the top.
Please help

Ответить
Kasun Hasitha Kumara Weerasinghe
Kasun Hasitha Kumara Weerasinghe - 04.07.2019 21:13

Thank you. God Bless You.

Ответить
VARUN GARG
VARUN GARG - 31.05.2019 11:18

I am not receiving the updated arraylist in this code of section.

Ответить
Fahad Tahir
Fahad Tahir - 10.05.2019 08:50

Hi Dear, Please let me know how to set data of only current user using the Model used in application. Thanks

Ответить
Andreu
Andreu - 06.05.2019 12:06

Thanks for the tutorial. Only one doubt: Why are you using a ListView instead of a RecyclerView?

Ответить
Umesh Kumar
Umesh Kumar - 04.05.2019 19:48

No source code available after sharing this on Facebook. Make available source code

Ответить
Tabish khan
Tabish khan - 16.04.2019 00:11

Is that possible to store data from one application and Retrieving data into another application?

Ответить
viraj rock
viraj rock - 01.04.2019 22:03

Supposed I am save 10 record in Firesbase real time database so what happens if we clear app data or reinstall app again?? We get our records while we needed in history

Ответить
Hubert
Hubert - 04.03.2019 14:45

It might be preferable to attach a "ChildEventListener" than "ValueEventListener". The former has more precise override functions that would reduce lines of code and probably the amount of data downloaded.

Ответить
The Filipina Khaleesi
The Filipina Khaleesi - 02.03.2019 18:28

Sir? How to sort the artist? The newly added artist should be at the top? How can I do it?

Ответить
Krishnakant Modani
Krishnakant Modani - 02.03.2019 09:37

Your videos are awesome !! Can you please make a video on multilevel indexing !!!?????? Please let me know as soon as possible !!!

Ответить
MeroD-Verse
MeroD-Verse - 21.02.2019 14:11

confusing and then their confusing and confusing that's all


I don't know how many times you said artist list and then artist list so please don't confuse make clear and simple.

Ответить
Ezra Poblete
Ezra Poblete - 14.02.2019 22:58

it can be viewed by listview but it wont show textviews what is the problem?

Ответить
John Angelo Ocfemia
John Angelo Ocfemia - 11.02.2019 12:19

Thank you sir, you're a life savior😇 may god bless you

Ответить