firebaseui

Display Firebase database content in a FirebaseListAdapter

雨燕双飞 提交于 2020-02-03 02:12:11
问题 I am currently experimenting with Firebase by creating a kind of small chat app. I am able to send data to the database reference, however I would expect it to be displayed thanks to the following code. However that is not the case, I was wondering if there was something wrong with the way I am using the adapter for my list. protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); if(FirebaseAuth.getInstance()

Firebase RecyclerView UI not showing [duplicate]

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-30 11:34:05
问题 This question already has answers here : FirebaseListAdapter not pushing individual items for chat app - Firebase-Ui 3.1 (2 answers) Closed 2 years ago . I have been trying to implement firebase ui in my app with recyclerview . I have items on my firebase database which i want to with firebase ui recycler view . So far, i think i have done everything right, however, when i run my app it still shows blank. Any help would be greatly appreciated. public class UsersActivity extends

Cannot resolve symbol FirebaseListAdapter [duplicate]

吃可爱长大的小学妹 提交于 2020-01-25 07:56:07
问题 This question already has an answer here : Firebase List Adapter Constructor error (1 answer) Closed 2 years ago . How do I insert the FirebaseListAdapter correctly? I always get the error "Can not resolve FirebaseListAdapter". If you need something, I'll post it. The whole is supposed to spend chat messages. The error is output in line 26. My code: import android.content.Intent; import android.support.annotation.NonNull; import android.support.design.widget.FloatingActionButton; import

FirebaseRecyclerAdapter unable to populate result [duplicate]

纵然是瞬间 提交于 2020-01-21 09:41:51
问题 This question already has answers here : FirebaseListAdapter not pushing individual items for chat app - Firebase-Ui 3.1 (2 answers) Closed 2 years ago . I want to display EmployeeDetails by using FirebaseRecyclerAdapter in RecyclerView and by not using FirebaseListAdapter. But the activity is displaying nothing Firebase: "EmployeeDetails" : { "3dTxdRlBVUZ0jzH4U5MR4TOKZnD2" : { "address" : "na", "name" : "na", "phoneNum" : "na", "type" : "Employee" }, "wEz6XRMQcAU9cQJLR82uVwVMrC83" : {

fragment- firebaserecycler adapter is not working on fragment

不问归期 提交于 2020-01-17 06:52:23
问题 I have data in realtime database and I am trying to display that data in fragment which has a recycler view. But data is not populated. Even populateView method is not triggred(I tried logging it). It loads well in activity but not in fragment. Can anyone help? public class ExtraFragment extends Fragment { RecyclerView recyclerView; TextView clickLink; DatabaseReference databaseReference; FirebaseRecyclerAdapter<ExtraBeans,MyViewHolder> recyclerAdapter; @Override public View onCreateView

Is there a way to sort the firebaserecyclerview after I calculate value after retrieving data?

Deadly 提交于 2020-01-14 06:49:46
问题 I'm using firebase database to store lat and lng of users. In this manner, Now when I retrieve them in my recyclerview I calculate the distance from my current location to that users location using the following code, private void loadLocationForThisUser(Double lat, Double lng, Double lat1, Double lng1) { //Create location from user coordinates currentUser1 = new Location(""); currentUser1.setLatitude(lat); currentUser1.setLongitude(lng); //Create location from friend coordinates friend1 =

Is there a way to sort the firebaserecyclerview after I calculate value after retrieving data?

烈酒焚心 提交于 2020-01-14 06:48:34
问题 I'm using firebase database to store lat and lng of users. In this manner, Now when I retrieve them in my recyclerview I calculate the distance from my current location to that users location using the following code, private void loadLocationForThisUser(Double lat, Double lng, Double lat1, Double lng1) { //Create location from user coordinates currentUser1 = new Location(""); currentUser1.setLatitude(lat); currentUser1.setLongitude(lng); //Create location from friend coordinates friend1 =

ReactJS app authentication: Firebase+FirebaseUI Uncaught Error: Firebase App named '[DEFAULT]-firebaseui-temp' already exists

北城以北 提交于 2020-01-13 20:42:10
问题 I'm having trouble with my code. I'm building a one page web app in ReactJS with 3 tabs. When the user goes to one tab, the authentication form from FirebaseUI should show up. The thing is that it's working only the first time and the second time, if I change to another tab and come back, it crashes, React re-renders the component that renders the div with the authentication form and throws the error: "firebase.js:26 Uncaught Error: Firebase App named '[DEFAULT]-firebaseui-temp' already

FirebaseIndexRecyclerAdapter onDataChanged is called but getItemCount() always return 0

别等时光非礼了梦想. 提交于 2020-01-13 19:49:21
问题 I'm using FirebaseIndexRecyclerAdapter which gets a keyRef and dataRef and is very helpful with getting all dataRef's children which their keys exists as children in keyRef. The data is being displayed correctly but if i'm overriding onDataChanged for hiding a progress bar and/or displaying an empty state depends on the itemsCount (Something which i've already done with FirebaseRecyclerAdapter and works as expected) but getItemCount always return 0(!) private class MYAdapter extends

What Is the Code to Install FirebaseUI on iOS (Swift)

跟風遠走 提交于 2020-01-12 10:50:10
问题 I'm trying to install the "drop-in" authentication solution from Firebase that automatically sends your app users through Google, Facebook, or email/password screens to authenticate them. My problem is that the code provided by Firebase appears to be in the old iOS language of Objective C instead of Swift, and that some of the lines of instructional Swift code appear outdated, and I can't find the new lines I'm supposed to use. I'm building my code mostly from the instructions on this part of