firebaseui

How to manage multiple download with Firebase and RecyclerView

匆匆过客 提交于 2019-12-11 09:25:26
问题 I have a RecyclerView and FirebaseRecyclerAdapter with items. Each item has reference to some files in Firebase storage. each item has download button. I use storageReference.getFile(location) to download files from firebase storage. When I click on download button and wait for the download to finish, the checked icon (green icon) is showing correctly at specific position. My problem is when I download multiple items at same time (when I click on multiple items), the green icon is not

Firebase Recycler View don't show anything

两盒软妹~` 提交于 2019-12-11 09:07:10
问题 Hello! At the beginning I must tell that I've shown many documentations about Firebase and spent a lot of time on existing topics on Stack. Let's begin. I'm creating app for car users with chat (Called Response) including Firebase implementation. Now I'm struggling with showing list of users using recyclerView. In firebase I have database "Users". After using my code I have blank activity without anyone user. In 'com.firebaseui:firebase-ui-database:2.4.0' (with populateViewHolder) my

Recyclerview is not updated with new Data

…衆ロ難τιáo~ 提交于 2019-12-11 07:59:15
问题 Hiy guys, I have a fragment with a RecyclerView in it. That RecyclerView is populated by a Firebase 'DatabaseReference' object and on that reference I have added a ValueListener as follows: public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { Log.d(TAG, "onCreateView"); View view = inflater.inflate(R.layout.fragment_home, container, false); databaseReference.addValueEventListener(new ValueEventListener() { @Override public void onDataChange

Sort a FirebaseRecyclerAdapter

南笙酒味 提交于 2019-12-11 07:17:42
问题 I'm making an app that shows the days of the week coming from FireBase, the problem is that I have them messed up and I want them to be sorted. I have searched in many places and put order with the sort method of the adapter: Sort listview with array adapter The problem is that I can not use this method because I use a FirebaseRecyclerAdapter which derives from an Adapter, which does not have the sort method. At the end I was able to sort the data of the adapter but when I show it only the

Getting IllegalStateException when using Firebase in Android

吃可爱长大的小学妹 提交于 2019-12-11 06:57:52
问题 I'm trying to use google/facebook/email authentication using firebase but I'm facing this error. Caused by: java.lang.IllegalStateException: This app has been built with an incorrect configuration. Please configure your build for VectorDrawableCompat. This occurs when I put the following in my gradle file (Moudle App) compile 'com.firebaseui:firebase-ui:0.4.4' When I remove it, everything works fine. Here's the full error log in case some one wants it: 08-12 14:53:02.454 2643-2643/com.example

Firebase RecyclerView ClickListener Not Being Called from .onStart()

这一生的挚爱 提交于 2019-12-11 06:09:39
问题 I followed the post here. I am essentially trying to set up a click listener in my RecyclerView . I am getting no response when I click an item in the RecyclerView . I have logged it and I'm not getting a call to the log when I click. Therefore, I know the .onClick() method is not firing. I initialize the adapter in .onStart() , as seen below: @Override public void onStart() { super.onStart(); mFireAdapter = new FirebaseRecyclerAdapter<Poll, PollHolder>(Poll.class, R.layout.latest_item,

How to use orderByChild or orderByValue in a FirebaseRecyclerAdapter

你说的曾经没有我的故事 提交于 2019-12-11 04:48:43
问题 I'm looking for a way to get my data sorted into a RecyclerView. At this moment I'm using the priority method for this, but I know that it is better to apply a orderByChild or orderByValue method to achieve this. I just cannot find how to do this properly. My (relevant) data structure is the following (bolt format): path /events/{event}/GeneralInfo is GeneralInfo{} path /events/{event}/instances/{instance} is Instance{} type GeneralInfo { owner : KeyString, name : ShortNameString | Null,

Multiple dex files define Lcom/google/android/gms/auth/api/signin/internal/zzf;

ε祈祈猫儿з 提交于 2019-12-11 03:37:12
问题 Error Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/auth/api/signin/internal/zzf; I get this error when i add these two dependencies together: compile 'com.google.firebase:firebase-auth:10.0.1' compile 'com.firebaseui:firebase-ui:0.6.0' app build

FirebaseUI login orientation

半城伤御伤魂 提交于 2019-12-11 03:24:49
问题 I'm using FirebaseUI for login. I can't make the login screen remain in portrait mode no matter what I try. What am I doing wrong here? I suspect it's something in the Manifest. Interestingly, the Splash Screen remains in portrait, and goes to landscape mode straight after that. I can't find the mistake, please help. <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.r3dm4n.abc"> <uses-permission android:name="android

firebase, how to update data at a key

会有一股神秘感。 提交于 2019-12-11 02:45:57
问题 I have some difficulties in updating an object at a bucket (key). At the time of persistence, I push() a list of objects (in this case, Trip) to a node. Later, I retrieved it, and make an update (in this case, updating the bid info) when a button is clicked. I can't seem to find an easy way to do that, unless when I had pushed the trip before, I had to manually call getkey() and then update the auto-generated uid to the object Trip itself. Any idea to get it done easily? thanks