title: Issue with FirebaseDatabase and FirebaseFirestore Data Manupulate and Retriving data
body: <p>My query is that I want to save some data in Firebase Realtime Database such that I will be able to call the data. Keeping in mind that users should be able to call the data even if they reinstall the app and each user will have a specific child. </p>
  
  <p>I am trying to make an app where the user will enter or save data to firebase and display it on the App, however, the issue is that I am not having an Idea on how to retrieve the data from firebase.</p>
  
  <p>The data which I am going to retrieve is the ItemName which I have saved inside</p>
  
  <p>child(uid).child(ItemName);</p>
  
  <p>each user will save their data with different <code>uid</code> inside different ItemName. </p>
  
  <p>The thing is that how will I retrieve the ItemName for each user since the ItemName will be different so I will not have any data of the ItemName for a particular user. If I save the ItemName in SharedPreferences I will be able to retrieve it, however, if the user, formate their phone or uninstall and reinstall the app then SharedPreference data will be removed, SO HOW WILL I RETRIVE THE ITEMNAME data from Firebase for a particular user to display it.</p>
  
  <p>MY CODE example: </p>
  
  <pre><code>String email= mAuth.getCurrentUser().getUid();
  dbFirestore= FirebaseFirestore.getInstance();
  userReference= FirebaseDatabase.getInstance().getReference().child("Users").child(itemName);
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/VD5JO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VD5JO.png" alt="enter image description here"></a></p>
  
  <p>Is there any method or function which retrieve the data without specifying the Child pathname like default path if we redirect the path towards there like</p>
  
  <pre><code>databaseReference = FirebaseDatabase.getInstance().getReference().child(uid).child(""); 
  </code></pre>
  
  <p>something like that. or is there any other way to do it.</p>
  
  <p><a href="https://i.stack.imgur.com/MlK4B.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MlK4B.png" alt="enter image description here"></a></p>