firebaseui

FirebaseRecyclerAdapter Give NoSuchMethodException If Build using Release Keystore

谁说胖子不能爱 提交于 2019-12-12 20:07:58
问题 I know from https://github.com/firebase/FirebaseUI-Android/issues/46, to fix NoSuchMethodException : make sure that your TaskViewHolder class is public if your TaskViewHolder is an inner class of e.g. your activity, make sure it's static The solution is worked only if I build the app using debug keystore. But after I build the app using release keystore, I still get NoSuchMethodException. minifyEnabled=false Tested on Android One Marshmallow Mito A10, Honor 6 and marsmallow emulator Stack

Firebase populateViewHolder is never called

折月煮酒 提交于 2019-12-12 13:20:00
问题 I have below structure in my firebase console . I am trying to read the values and display all the users but populateViewHolder never gets called. users +OW5BYennVRXvfzOjfKpup9rZEYv2 -email: "abc@gmail.com" -username: "abc" While in the below code I receive the item count as 1 mAdapter.registerAdapterDataObserver(new RecyclerView.AdapterDataObserver() { @Override public void onItemRangeInserted(int positionStart, int itemCount) { super.onItemRangeInserted(positionStart, itemCount); int

Filter in FirebaseRecyclerViewAdapter

烈酒焚心 提交于 2019-12-12 12:36:02
问题 On that question ( how to implement a SetOnItemClickListener FirebaseRecyclerViewAdapter ) I learned how to use the FirebaseRecyclerViewAdapter to get the click of recycler view, perfect. Now I need to filter RecyclerView items made with the FirebaseRecyclerViewAdapter. In my business rule listo of the items and the user can filter them. If it was manual, a list adding the adapter I know, but as the FirebaseRecyclerViewAdapter is responsible to prepare / update the list, someone has a

Users list empty

泪湿孤枕 提交于 2019-12-12 06:59:44
问题 I'm trying to retrieve from RealTime-Database the list of users with their First name and second name but nothing appears. The class UsersActivity show all the users from the database.I tried a lot of tutorials but nothing seems to work. public class UsersActivity extends AppCompatActivity { private RecyclerView userslist; private DatabaseReference ref; private List<Users> mUsers; @Override protected void onCreate (Bundle savedInstanceState) { super.onCreate ( savedInstanceState );

Android Firebase retrieve data from all nodes (nested) in Fragments

瘦欲@ 提交于 2019-12-12 05:38:15
问题 I want my app to retrieve firebase data in 2 ways: Retrieve data for currently logged in user, which I have done using .child(user.getUid()), user = firebaseAuth.getCurrentUser() Retrieve data from all users including the logged in user (hence this question). https://i.stack.imgur.com/WnwQg.png In other word, I want to retrieve all the circled data values. Below are my codes: AdminFragment.java: public class AdminFragment extends Fragment { public AdminFragment() { // Required empty public

Why My FirebaseRecylerAdapter Not Working Properly?

时光毁灭记忆、已成空白 提交于 2019-12-12 04:19:20
问题 I am trying to display all child "name" located in My Database tree. I used this answer given by @Alex Mamo Unable to get All child data in Firebase Database using a Map? I want to display all the data into a recyclerView. But for some reasons instead of getting all names(Eva, smith, princess) on my Screen Phone, I am only able to see one "princess" which is being displayed 3 times in my recyclerView layout(princess, princess, princess). After playing around with Alex's answer, I found this

E/RecyclerView﹕ No adapter attached; skipping layout

蹲街弑〆低调 提交于 2019-12-12 04:13:02
问题 By the title of this question, its easily understandable that, the adapter of recyclerview is not set inside a UI thread. But in my case to avoid that I have tried doing it even on UI thread but still no luck. I am using FirebaseUI for my app. Below is the code snippet: public static void getUserFromUserId(@NonNull DatabaseReference dbRef, @NonNull String userId) { dbRef.child(USERS).child(userId) .addListenerForSingleValueEvent(new ValueEventListener() { @Override public void onDataChange

Firebase query result in ListView UI and RecyclerView UI

不打扰是莪最后的温柔 提交于 2019-12-12 03:48:11
问题 I am trying to create a Firebase database to store employee information and then when an address is queried, all the employees staying in that particular area should be displayed in a ListView or a RecyclerView however, I am having the following problem: I am unable to populate the ListView. ArrayList<String> mItems = new ArrayList<>(); ArrayAdapter mAdapter; ListView mRecyclerView; FirebaseListAdapter<String> fireAdapter = new FirebaseListAdapter<String>() { @Override protected void

compile 'com.firebaseui:firebase-ui:0.4.3 how to fix error. i get every time error with any firebase ui dependencies

断了今生、忘了曾经 提交于 2019-12-12 01:49:55
问题 Error:Execution failed for task ':app:compileDebugJavaWithJavac'. Compilation failed; see the compiler error output for details how to fix this error please ans me my build.gradle apply plugin: 'com.android application' android { compileSdkVersion 25 buildToolsVersion '25.0.2' defaultConfig { applicationId "com.example.mayur.mahadev" minSdkVersion 22 targetSdkVersion 25 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes {

FirebaseRecyclerAdapter data fetching policy

那年仲夏 提交于 2019-12-12 01:48:14
问题 Does FirebaseRecyclerAdapter load all children at a reference at once, or only upon scrolling. Suppose we have a ref containing thousands of chat messages, are they all going to be fetched from database at once?? 回答1: The FirebaseRecyclerAdapter loads whatever child nodes are matches by the DatabaseReference or Query you pass into it. It does not implement pagination or another form of load-on-demand. 来源: https://stackoverflow.com/questions/43608616/firebaserecycleradapter-data-fetching