Комментарии:
Hi sir, i enter almost same code but addValueEventListener is not firing. i share my code here
FirebaseDatabase database = FirebaseDatabase.getInstance();
DatabaseReference referenceArea = database.getReference("Area");
referenceArea.addValueEventListener(new ValueEventListener() {
@Override
public void onDataChange(@NonNull DataSnapshot dataSnapshot) {
for (DataSnapshot snapshot : dataSnapshot.getChildren()) {
AreaInfo info = snapshot.getValue(AreaInfo.class);
String Area_Code = info.getAR_CODE();
String Area_Name = info.getArea_Name();
AreaExist = dbMain.hasObjectArea(Integer.parseInt(Area_Code));
if (AreaExist == false && !Area_Name.trim().equals("")) {
dbMain.addArea(Integer.parseInt(Area_Code), Area_Name);
}
}
}
@Override
public void onCancelled(@NonNull DatabaseError databaseError) {
}
});
Retrieve data wala button kab add kiya home screen pe??
ОтветитьWhat if i want to retrieve data of a particular student?
Ответитьwhy its keep on crashing? didn't show the data on list view and afterwards it crash.
Ответитьhello sir can u show me ur activity main activity java.
i have built some intent but the code cant run.
help me cause i need to teach my student.tq sir
Thank you so much, it was helped me a lot
Ответитьinserting data suceessfull. But Data not retrievinng
ОтветитьPlease help sir
ОтветитьDude you are perfect but actually I am not able to show the data
ОтветитьI have a problem with my apps, but a follow all of your tutorial. But my apps keep crashing when i try to retrieve data from firebase.. but the data has been uploaded to firebase. But its crash when you go to retrieve activity. Please help me sir
Ответитьsir how can l retrieve data to a fragment layout
Ответитьyou never showed to make the button that gets the information
ОтветитьGood day, sir, I have a problem retrieving the data, can you help me out? the list view is displayed but the data from database did not appear
Ответитьwhat is your OS?
Ответитьwhere is source code
Ответитьhi ...how can i display it in textview? please help me
ОтветитьAOA
Sir please make a video how to retrieve data from two nodes or table from firebase android
Hello Please help me! i have an error datasnapshot. i have been follow your coding but the app crash
Ответитьhelp me sir plz
Ответитьsir i found error
ОтветитьWorking Thank you!!!
Ответитьoh brother, i was wondering for 2 days to find bug in my app. you just help me. cant explain how much glad i am.
Ответитьhow can get retrieve button and how will do click the retrieve button and get those data? you don't show it in your video. please can you explain it?I'm in trouble in that
ОтветитьHi ! I done Exactly what you done . But Page is Empty no errors ?
ОтветитьSir button retrieve data pa set on click listener nhi lagaya
Ответитьhow to retrive data for speacific user in EditTextView
ОтветитьHi sir! How to retrieve video + thumbnail from real time database in android studio?
ОтветитьNot being able to view data....and activity gets closed after few seconds.
Error: skipped 11 frames. To much work done in main thread
Plz help with this
Flow of explaining is excellent 🔥 thank you for sharing your knowledge 😁
ОтветитьWhen I retrieve data my activity exit ,there is no error shown in error logs too. What is the problem
ОтветитьThank you for this , how can we retrieve firebase data in table layout or tableview ?
ОтветитьHow can create Retrive button
ОтветитьHii... I want to add Buttons and Textview togather in a childnode called user_id
Example:
Myproject3665
|
Users
|
user_id_1 (edittext)
| |
| Status:"comment" ( Textwiew)
| Status:"comment" ( Textwiew)
| Value:"0" Or "1" (Button)
| Value:"0" Or "1" (Button)
user_id_2 (edittext)
| |
| Status:"comment" ( Textwiew)
| Status:"comment" ( Textwiew)
| Value:"0" Or "1" (Button)
| Value:"0" Or "1" (Button)
Am unable to create this pattern in my android app with button and text view..i want to read and write my data in real-time database..... help me
nice
Ответитьthank you very much for sharing your knowledge,
ОтветитьExellent tutorial but where is the part where you create the Retrieve button. So the main activity can use the setOnclickLister and how to call the function.
Thanks for the tut.
Sir I have error in dataSnapshot ...pls help
ОтветитьI'm pretty confused about what exactly a snapshot is and can't find a clear answer. Does it contain all the data of an element and its children? I'm building an Android app and wondering, if I took a snapshot of a parent that was small in size but had 10,000 children, would it download the ALL of that data to the user's phone, even though most of it will be irrelevant? Thank you.
ОтветитьHellow Sir it will not show my data to me I code line by line as you
ОтветитьPls Help
Error = java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference
Code = public class RetreiveListAdapter extends ArrayAdapter {
private Activity mContext;
List<Info> infoList;
public RetreiveListAdapter(Activity mContext, List<Info> infoList) {
super(mContext, R.layout.activity_list_view_info, infoList);
this.mContext = mContext;
this.infoList = infoList;
}
@NonNull
@Override
public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) {
LayoutInflater inflater = mContext.getLayoutInflater();
View listItemView = inflater.inflate(R.layout.activity_list_view_info, null, true);
TextView textView1 = listItemView.findViewById(R.id.textView1);
TextView textView2 = listItemView.findViewById(R.id.textView2);
TextView imageView = listItemView.findViewById(R.id.imageView);
Info info = infoList.get(position);
textView1.setText(info.getTitle());
textView2.setText(info.getDescription());
imageView.setText(info.getImage());
return listItemView;
}
}
I’m not getting the .getName ? it’s not suggesting, where did the .getName come from?
ОтветитьCan you help me please i have everything same what you have done in video, but my data is not visible , and i am not getting the error also please help me
ОтветитьI followed all instructions given here still facing issue...my app is getting close
ОтветитьThank you very much. Your video really help me to solve my app problem :). Keep on doing the tutorial.
Ответить