firebaseui

In project 'app' a resolved Google Play services library dependency depends on another at an exact version

旧街凉风 提交于 2019-12-03 20:39:05
问题 Trying to create a simple app with FireStore and Google Authentication. Having problem with the gradle: In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[15.0. 1]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown. Dependency failing: com.google.android.gms:play-services-flags:15.0.1 -> com.google.android.gms:play-services-basement@[ 15.0.1], but play-services-basement version was 16.0

Firestore into recyclerview using FirebaseUI, no data displayed

99封情书 提交于 2019-12-03 20:37:08
I just got started with Firestore. So I tried fitting my data directly into a recyclerview, here's the code I used for reference. Here's my UserRecyclerView Fragment : public class UserRecyclerView extends Fragment{ private ArrayList<User> user; RecyclerView mRecyclerView; public UserRecyclerView(){} @Nullable @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { View view = inflater.inflate(R.layout.recycler_view,container,false); mRecyclerView = (RecyclerView) view.findViewById(R.id.recycler_view);

Filter query to populate FirebaseRecyclerAdapter

别说谁变了你拦得住时间么 提交于 2019-12-03 17:09:21
This is still unclear how to populate FirebaseRecyclerAdapter with custom query. Define a reference. Here: DatabaseReference ref = mDatabase.getReference().child("users"); Send it to adapter initAdapter(ref); Define query and set listener. Is it right? mAdapter = new FirebaseRecyclerAdapter<User, UserHolder>(User.class, R.layout.user_row_layout, UserHolder.class, ref) { @Override protected void populateViewHolder(final UserHolder viewHolder, final User model, int position) { Query query = ref.orderByChild("group").equalTo(uid); query.addChildEventListener(new ChildEventListener() { @Override

FirebaseRecyclerAdapter and multiply item types on android

不打扰是莪最后的温柔 提交于 2019-12-03 16:43:05
I want to add 2 types:- with image without image in my recyclerview . I know that I need to override method from FirebaseRecyclerAdapter but I don't know how. Help me please with this. @Override public int getItemViewType(int position) { return mModelLayout; } abstract protected void populateViewHolder(VH viewHolder, T model, int position); So I want to get from T-model type of item via int (1 - with image, 2 - without) and change mModelLayout basing on this info. Can I just add if else statement there ? This answer builds on hatboysam's answer. It took me ages to figure out how everything

How to use firebase with ViewPager and FragmentPagerAdapter?

青春壹個敷衍的年華 提交于 2019-12-03 15:35:00
I have a situation when I have large set of data[Approx 1000+] in firebase database and I want to show those data in ViewPager with Fragments. So, like android firebase-ui library has adapter for ListView and RecyclerView which will handle the large data set in proper way. Is there anything like that for adapter of ViewPager? Or any help on how we should handle those large set of data? 来源: https://stackoverflow.com/questions/38022540/how-to-use-firebase-with-viewpager-and-fragmentpageradapter

How to delete a Firebase user from Android App?

筅森魡賤 提交于 2019-12-03 11:15:25
问题 I'm trying to code a Delete User method in my Android App, but I have some issues each time I execute it. This method will be executed when a user pushes the Delete account button on an Activity. My apps works with FirebaseUI Auth. Here is the method: private void deleteAccount() { Log.d(TAG, "ingreso a deleteAccount"); FirebaseAuth firebaseAuth = FirebaseAuth.getInstance(); final FirebaseUser currentUser = firebaseAuth.getCurrentUser(); currentUser.delete().addOnCompleteListener(new

Firebase searching by character

为君一笑 提交于 2019-12-03 10:14:55
问题 I am using FirebaseRecyclerAdapter in my firebase app and I am still till now didn't know how to search in Firebase by character, I have already used an query and I have got a good result but its not usable, here's my database I want to search in: And here's my method that I use it but it get the "Username" if I enter full name only so if I write "m" nothing show: mMainSearcher.setOnQueryTextListener(new SearchView.OnQueryTextListener() { @Override public boolean onQueryTextSubmit(String

How to delete a Firebase user from Android App?

北城余情 提交于 2019-12-03 01:41:28
I'm trying to code a Delete User method in my Android App, but I have some issues each time I execute it. This method will be executed when a user pushes the Delete account button on an Activity. My apps works with FirebaseUI Auth. Here is the method: private void deleteAccount() { Log.d(TAG, "ingreso a deleteAccount"); FirebaseAuth firebaseAuth = FirebaseAuth.getInstance(); final FirebaseUser currentUser = firebaseAuth.getCurrentUser(); currentUser.delete().addOnCompleteListener(new OnCompleteListener<Void>() { @Override public void onComplete(@NonNull Task<Void> task) { if (task.isSuccessful

Firebase searching by character

霸气de小男生 提交于 2019-12-03 00:42:56
I am using FirebaseRecyclerAdapter in my firebase app and I am still till now didn't know how to search in Firebase by character, I have already used an query and I have got a good result but its not usable, here's my database I want to search in: And here's my method that I use it but it get the "Username" if I enter full name only so if I write "m" nothing show: mMainSearcher.setOnQueryTextListener(new SearchView.OnQueryTextListener() { @Override public boolean onQueryTextSubmit(String query) { return false; } @Override public boolean onQueryTextChange(String newText) { Query Q = mDatabase

Output not showing when the firebase ui upgrade to 3.2.2

岁酱吖の 提交于 2019-12-02 15:34:33
问题 When i upgrade my firebase-ui version to 3.2.2 the firebaserecycleradapter doesn't show any output the code of mine. at first when i got multidex error then i upgrade all library version to lastest version on dependency of app lvl gradle and after upgrade the problem is found the Firebaserecycleradapter method then i search it and write after run the app the list view are not displaying plz help me. onStart(): @Override protected void onStart() { super.onStart(); FirebaseRecyclerOptions