I had some errors in my code and I was not able to solve it but this bro helped me a lot. I have messaged him the error on Instagram and he solved it. Thank you bro👍👍👍
the string in 9:57 min ,dosent work with me what is solution ?? there is 5 option 1-create class string 2-create enum string 3-create inner string 4-create interface string 5-create type parameter string what to choose?? I am a university student working on my graduation project. Please answer me
@@codingstuff070 Thanks for replying, E/eglCodecCommon: GoldfishAddressSpaceHostMemoryAllocator: ioctl_ping failed for device_type=5, ret=-1 this is logcat red shows only
Most of u r not able to retrieve data... It is causing mainly because of your model class varibles name. Make sure your model class varibles name must be same as child's or fields name in relatime db.
Hey.... Check out new tutorial playlist of instag blog app where we are using firebase multiple services. th-cam.com/play/PLhhNsarqV6MTHwd8fttCrP2fRijuQ0dah.html
Hello there. Thank you for the tutorial on this, but I have minor problem. When I want to view the list of email/surname/name, it does not show on the ShowActivity. Can you help me?
@@codingstuff070 I tried it already on the emulator. Still does not show any of it. The data can send to firebase but its does not retrieve back when I press the "View List Button". It only display like "Name", "Surname" and "Email" but not the "blablagmail.com" that I previously send earlier.
May be u have not inflated item Layout in adapter Or not finded id of wigdets in viewholder class.... If u want source code i can definitely provide u.
i tried to do this in a fragment however: when typing: adapter = new MyAdapter(this,list); 15:08 it would show an error... anybody has any ideas why this doesn't work that well in a fragement? also the LinearLayoutManager won't work either also for some reason for (DataSnapshot dataSnapshot : snapshot.getChildren());{ Model model = dataSnapshot.getValue(Model.class); won't work either... it says it cannot resolve symbol: 'dataSnapshot' on this line
hi its me again, i want to ask, if i want to display some specific data like category, can u do it (example: which car shop have provide service like oil, repair, wash, tire or some else.)
Most of u r not able to retrieve data... It is causing mainly because of your model class varibles name. Make sure your model class varibles name must be same as child's or fields name in relatime db.
@سلفي على منهاج النبوة we don't need setters as we are using hashmap nd saving the map data to firebase .... Also we have not created parameterize constructor... Cause we don't need that in this tutorial
Im getting this error any help ? com.google.firebase.database.DatabaseException: Can't convert object of type java.lang.String to type com.example.database.Model
Am getting error inside for loop(addValueEvent) in the line : Model model= dataSnapshot.getValue(Model.class); Can u help me, I checked that in db same var name is given
Most of u r not able to retrieve data... It is causing mainly because of your model class varibles name. Make sure your model class varibles name must be same as child's or fields name in relatime db.
@@codingstuff070 just found the solution to my problem. I just created a new model java class file and it seems to be working now. Thank you brother 🙏🏻
Hi sir. I need some help, because I got an error saying 'from(android.content.Context)' in 'android.view.LayoutInflater' cannot be applied to '(com.google.firebase.database.core.Context)'
Hi its a nice video. How to retrive recent data that has been register recently at the top of recycler view. I saw that recent data go at the last of the view?
Watch this video while uploading th-cam.com/video/dN7DLjQWezc/w-d-xo.html And this while retrieving.. U will get the idea th-cam.com/video/M3TrtarRIV0/w-d-xo.html
ok i will check it out. I have one more query that in recycler view how we can add the time like i post something and it comes to recycler view and should show 1 sec ago ... 1 min ago relative to time.. any idea??
By that server timestamp u can evaluate the time. SimpleDateFormat format = new SimpleDateFormat("yyyy.MM.dd G 'at' HH:mm:ss"); Date past = format.parse("2016.02.05 AD at 23:59:30"); Date now = new Date(); long seconds=TimeUnit.MILLISECONDS.toSeconds(now.getTime() - past.getTime()); long minutes=TimeUnit.MILLISECONDS.toMinutes(now.getTime() - past.getTime()); long hours=TimeUnit.MILLISECONDS.toHours(now.getTime() - past.getTime()); long days=TimeUnit.MILLISECONDS.toDays(now.getTime() - past.getTime()); // // System.out.println(TimeUnit.MILLISECONDS.toSeconds(now.getTime() - past.getTime()) + " milliseconds ago"); // System.out.println(TimeUnit.MILLISECONDS.toMinutes(now.getTime() - past.getTime()) + " minutes ago"); // System.out.println(TimeUnit.MILLISECONDS.toHours(now.getTime() - past.getTime()) + " hours ago"); // System.out.println(TimeUnit.MILLISECONDS.toDays(now.getTime() - past.getTime()) + " days ago"); if(seconds
Most of u r not able to retrieve data... It is causing mainly because of your model class varibles name. Make sure your model class varibles name must be same as child's or fields name in relatime db.
good day. i got this error " java.lang.NullPointerException: Attempt to invoke virtual method 'int java.util.ArrayList.size()' on a null object reference at com.example.bill.MyAdpter.getItemCount(MyAdpter.java:50)" how to solve this ?
Sir, I followed your instructions ,But the number of users are correctly shown in card view but the values of the users was not displaying please help me I am new to Android Studio
Match ur model class variables name with firebase child field values. For ex. If it is Name in firebase then make ur model class variable exactly same as Name
I got an error on word 'context' in line 'View v = LayoutInflater.from(context).inflate(R.layout.list_layout,parent,false);' The error msg said the required type is 'android.content.Context' but provided 'com.google.firebase.database.core.Context' Please help me QwQ
Hey bro i have followed your tutorial , It is really amazing . But I had a got into an error where my database isnt been displayed when i click on the button2(showactivity) it comes out from that activity and doesnt display anything. Even the class which i have created similar to model class inserts the data to database but not in my showActivity class. It will be helpful if you help me out!!. Please help
thanks bro make part3 add image with upload data text and when retrivea data show image and when click on open new activity show data with image thanks again
If u have already authenticated user.... U can get his data using auth.getCurrentUser we have done this in Instag blog app tutorial series......... th-cam.com/video/b1sHQpwJzVU/w-d-xo.html
This will work fine but you'll encounter an error when it comes to retrieving the data. It won't display on the textviews inside the card view. If you want to solve this challenge, use create a constructor for the model class an use it to upload the data to the firebase realtime database. Do not use the hashmap
While uploading u can use hasmap or Java object while updating u can only update value using hashmap while retrieving u should create model class or u can get specific field values using key.
I got into a problem where i couldn't retrieve the data back but you my friend saved me . You helped me through . Thank you for your help ✨ Guys this guy is amazing!! . Do subscribe to his channel make him reach 1M. You really deserve it!!
java.lang.ClassCastException: androidx.constraintlayout.widget.ConstraintLayout cannot be cast to androidx.recyclerview.widget.RecyclerView how to solve it?
I had some errors in my code and I was not able to solve it but this bro helped me a lot. I have messaged him the error on Instagram and he solved it.
Thank you bro👍👍👍
☺☺
Assisti 200 Vídeos e esse foi o único que ajudou. Obrigado.
Comunidade Brasil agradece.
the string in 9:57 min ,dosent work with me
what is solution ??
there is 5 option
1-create class string
2-create enum string
3-create inner string
4-create interface string
5-create type parameter string
what to choose??
I am a university student working on my graduation project. Please answer me
Sir i have no errors in my code and app is storing data successfully but not retrieving .Please help.
i was looking for same tutorial since one week ... Great job man thumbs up ..
Glad you liked it!
You're a life saver!! God bless you
best video on youtube
how to show this stuff inside navigation drawer ??
UR video helped me a lot i was solving this since 1 month
Really nice and clear teaching, thanks. unfortunately, I follow all but can't show the detail that entered. same problem with others.
Check logcat and let me know the error Or exception
@@codingstuff070 Thanks for replying, E/eglCodecCommon: GoldfishAddressSpaceHostMemoryAllocator: ioctl_ping failed for device_type=5, ret=-1
this is logcat red shows only
Most of u r not able to retrieve data... It is causing mainly because of your model class varibles name. Make sure your model class varibles name must be same as child's or fields name in relatime db.
Amazing vid.
Hey.... Check out new tutorial playlist of instag blog app where we are using firebase multiple services.
th-cam.com/play/PLhhNsarqV6MTHwd8fttCrP2fRijuQ0dah.html
do you know why mine crashed when i click on retrieve data ?
is can retrieve data from firebase to multi users with this code?
Hello there. Thank you for the tutorial on this, but I have minor problem. When I want to view the list of email/surname/name, it does not show on the ShowActivity. Can you help me?
Check logcat what exception Or error it is showing
@@codingstuff070 E/SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
R u testing on samsung device
@@codingstuff070 I tried it already on the emulator. Still does not show any of it. The data can send to firebase but its does not retrieve back when I press the "View List Button". It only display like "Name", "Surname" and "Email" but not the "blablagmail.com" that I previously send earlier.
Send me screenshot of ur code at instagram @codingstuff070
it's good but how to know the data are showed in item.xml? cause my own can't show it
May be u have not inflated item Layout in adapter Or not finded id of wigdets in viewholder class.... If u want source code i can definitely provide u.
@@codingstuff070 i done of my inflated, but it still can't show up the data, yes if u can.
Or could u can help me to see??
@@codingstuff070
the code similar like this??
View v = LayoutInflater.from(context).inflate(R.layout.item, parent, false);
@@CHRISSSSSLAM Source code - sanathgosavi.blogspot.com/2020/11/upload-data-in-realtime-database-and.html
问题解决了么?我的也无法显示
i tried to do this in a fragment however:
when typing: adapter = new MyAdapter(this,list);
15:08 it would show an error... anybody has any ideas why this doesn't work that well in a fragement? also the LinearLayoutManager won't work either
also for some reason
for (DataSnapshot dataSnapshot : snapshot.getChildren());{
Model model = dataSnapshot.getValue(Model.class); won't work either... it says it cannot resolve symbol: 'dataSnapshot' on this line
I don't have any error but when I click on show data, data is not displaying but linear layout is generated
i m using fragment and my fragment_showActivity is not showing any data.... need help!!!
hi its me again, i want to ask, if i want to display some specific data like category, can u do it (example: which car shop have provide service like oil, repair, wash, tire or some else.)
@CodingSTUFF if u know the solution, pls do the video or show the code ASAP🙏🏻
Yes we have done this query stuff in Instag blog app tutorial series. Checkout that tutorials
@@codingstuff070 okey but i used the realtime database, is that same code of cloud firestore??
No both codes are different but firestore is better choice than real-time db.
Most of u r not able to retrieve data... It is causing mainly because of your model class varibles name. Make sure your model class varibles name must be same as child's or fields name in relatime db.
@سلفي على منهاج النبوة we don't need setters as we are using hashmap nd saving the map data to firebase .... Also we have not created parameterize constructor... Cause we don't need that in this tutorial
how to retrive value using addchildvalueeventlistene() plz guide me
Im getting this error any help ? com.google.firebase.database.DatabaseException: Can't convert object of type java.lang.String to type com.example.database.Model
Source code is in the description box... Try to match ur code with it... If Still get error let me know...
hi i follow your steps but my project just retrieve a names without emails or surnames i don't know why ?can you help me?
Send me ur code at Instagram @codingstuff070
Can you add the correct ShowActivity source code? I'm struggling with it and the file on the website is the same as MainActivity.
Ok man i have changed it...
@@codingstuff070 thank you 🙂
Am getting error inside for loop(addValueEvent) in the line :
Model model= dataSnapshot.getValue(Model.class);
Can u help me, I checked that in db same var name is given
What error is saying...?
@@codingstuff070 app is crashing
@@amalrosh2393 yes man but what error is saying in logcat
@@codingstuff070 I will watch the video again, and will ask you if error is not gone
@@amalrosh2393 ok
i get error in context:this
please help me
In which class u got this error
how to pass the data received by recyclerview from firebase realtime database to antother activity
my app crashes when i press the button to show the data
What if I want to get all data in random order?
Like I have 5 items & I want like 2, 4, 31, 5.
Can you help mw with that please?
Use cloud firestore.....
It's almost working, but the text on the item layout that should be changing is not working.
if I have several subchildren in my db . how can we iterate through each one?
Using for loop u can iterate through
@@codingstuff070 actually i tried the code but i am not able to see anything........i am getting a blank screen
Send me photos of ur code at Instagram.... @codingstuff070
Can we use the same code for firestore?
No..... Little bit changes there .... U can watch this tutorial series
th-cam.com/play/PLhhNsarqV6MSIVonypROq0gxcOLxbUDNR.html
@@codingstuff070 nice! thanks you very much
My textview in cardview does not display any data but the number of cardview that appears is the same as the number of data in database
Most of u r not able to retrieve data... It is causing mainly because of your model class varibles name. Make sure your model class varibles name must be same as child's or fields name in relatime db.
@@codingstuff070 just found the solution to my problem. I just created a new model java class file and it seems to be working now. Thank you brother 🙏🏻
Watch our new tutorial series to understand firebase in detail.
th-cam.com/play/PLhhNsarqV6MTHwd8fttCrP2fRijuQ0dah.html
Sir thank u so much.I just stuck on the same problem but fixed it with the help of your solution 🙏🙏
@@codingstuff070 Sir thank u so much.I just stuck on the same problem but fixed it with the help of your solution 🙏🙏
Hi sir. I need some help, because I got an error saying 'from(android.content.Context)' in 'android.view.LayoutInflater' cannot be applied to '(com.google.firebase.database.core.Context)'
I am getting error at getvalue and app is crashing how can I solve it
Wht is error in the logcat
Hi its a nice video. How to retrive recent data that has been register recently at the top of recycler view. I saw that recent data go at the last of the view?
When u store the images in firebase add time stamp as well .. Then while Retrieving the data apply query orderBy and pass the "time" There.
Watch this video while uploading
th-cam.com/video/dN7DLjQWezc/w-d-xo.html
And this while retrieving.. U will get the idea
th-cam.com/video/M3TrtarRIV0/w-d-xo.html
ok i will check it out. I have one more query that in recycler view how we can add the time like i post something and it comes to recycler view and should show 1 sec ago ... 1 min ago relative to time.. any idea??
By that server timestamp u can evaluate the time.
SimpleDateFormat format = new SimpleDateFormat("yyyy.MM.dd G 'at' HH:mm:ss");
Date past = format.parse("2016.02.05 AD at 23:59:30");
Date now = new Date(); long seconds=TimeUnit.MILLISECONDS.toSeconds(now.getTime() - past.getTime());
long minutes=TimeUnit.MILLISECONDS.toMinutes(now.getTime() - past.getTime()); long hours=TimeUnit.MILLISECONDS.toHours(now.getTime() - past.getTime()); long days=TimeUnit.MILLISECONDS.toDays(now.getTime() - past.getTime()); // // System.out.println(TimeUnit.MILLISECONDS.toSeconds(now.getTime() - past.getTime()) + " milliseconds ago"); // System.out.println(TimeUnit.MILLISECONDS.toMinutes(now.getTime() - past.getTime()) + " minutes ago"); // System.out.println(TimeUnit.MILLISECONDS.toHours(now.getTime() - past.getTime()) + " hours ago"); // System.out.println(TimeUnit.MILLISECONDS.toDays(now.getTime() - past.getTime()) + " days ago"); if(seconds
Thanks for this video bro!
I have follow all steps in this video but why my recyclerview not showing any data when i run it?
Check logcat nd try to match with source code. Source code is in the description box
Most of u r not able to retrieve data... It is causing mainly because of your model class varibles name. Make sure your model class varibles name must be same as child's or fields name in relatime db.
good day. i got this error " java.lang.NullPointerException: Attempt to invoke virtual method 'int java.util.ArrayList.size()' on a null object reference
at com.example.bill.MyAdpter.getItemCount(MyAdpter.java:50)" how to solve this ?
May be u forgot to initialize Arraylist
bro why realtime firebase are not showing any data???
Where in firebase console Or in ur app
@@codingstuff070 firebase console bro, they only showing null
Send me photo of it on Instagram @codingstuff070
@@codingstuff070 already sent it bro
Sir, I followed your instructions ,But the number of users are correctly shown in card view but the values of the users was not displaying please help me I am new to Android Studio
Match ur model class variables name with firebase child field values. For ex. If it is Name in firebase then make ur model class variable exactly same as Name
@@codingstuff070 Thank You Sir
I got an error on word 'context' in line 'View v = LayoutInflater.from(context).inflate(R.layout.list_layout,parent,false);'
The error msg said the required type is 'android.content.Context' but provided 'com.google.firebase.database.core.Context'
Please help me QwQ
Important Context from android.content.Context
@@codingstuff070 Thank You so much!!
Hey bro i have followed your tutorial , It is really amazing . But I had a got into an error where my database isnt been displayed when i click on the button2(showactivity) it comes out from that activity and doesnt display anything. Even the class which i have created similar to model class inserts the data to database but not in my showActivity class. It will be helpful if you help me out!!. Please help
Show me ur code photos on Instagram at @codingstuff070 .... When u add onClickListner on button 2
@@codingstuff070 Sure bro , I actually need your email so that i could send you my docx file with pictures included :)
bro can u plz provide me dependencies for recycler view
"androidx.recyclerview:recyclerview:1.2.1"
@@codingstuff070 bro i am getting empty screen in showactivity
i am try from morning to fix issue bt i am not able to fix
bro plz help me
Send me ur code photos on Instagram @codingstuff070
@@codingstuff070 thank you so much bro for fixing my code
thanks bro
make part3
add image with upload data text and when retrivea data show image and when click on open new activity show data with image
thanks again
It's already done man.... Instag blog app tutorial series is finished with 13 parts. Check complete playlist.
@@codingstuff070 thanks
how i can add image
th-cam.com/video/9-oa4OS7lUQ/w-d-xo.html
i have error please help me
Bro how to retrieve current user details?
If u have already authenticated user.... U can get his data using auth.getCurrentUser we have done this in Instag blog app tutorial series.........
th-cam.com/video/b1sHQpwJzVU/w-d-xo.html
Katta rahmat bro
cool
This will work fine but you'll encounter an error when it comes to retrieving the data. It won't display on the textviews inside the card view. If you want to solve this challenge, use create a constructor for the model class an use it to upload the data to the firebase realtime database. Do not use the hashmap
While uploading u can use hasmap or Java object while updating u can only update value using hashmap while retrieving u should create model class or u can get specific field values using key.
Pls do videos in kotlin too
Already doing
Hi sir! How to retrieve video + thumbnail from real time database in android studio?
Soon I will make video on it
@@codingstuff070 Thank you sir
The data showing "DOUBLES" every time you make an entry.
thank you bro
i dont know why but following this method the app shows me only one value
Bro ur model class variable should exactly match to firebase field values
Thanks
Nice Work my Friend, Can you hare .xml files aswell.
even my data is showing two times
I Don't have getName, getSurname, getEmail.
Please help me fast
What
@@codingstuff070 to get getName, getSurName,getemail.
@@codingstuff070 in My adapter java file
Create model class for that
s
I got into a problem where i couldn't retrieve the data back but you my friend saved me . You helped me through . Thank you for your help ✨
Guys this guy is amazing!! . Do subscribe to his channel make him reach 1M.
You really deserve it!!
Thank you brother 🙏🙏❤
java.lang.ClassCastException: androidx.constraintlayout.widget.ConstraintLayout cannot be cast to androidx.recyclerview.widget.RecyclerView
how to solve it?
my app crashed when i open showactivity please help me
Show me ur code on instagram @codingstuff070
have you figured out the problem?
Thanks
Thanks