firebaseui

android manifest merger failed, gms play services / firebase

ぐ巨炮叔叔 提交于 2019-11-28 19:23:09
I am trying to add firebase to my app using the firebaseUI. As the documentations says, I have used the corresponding gms:play-services (11.0.4) with the firebaseUI version (2.2.0) When I sync the gradle files, I receive following error: Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(26.0.0) from [com.android.support:support-v13:26.0.0] AndroidManifest.xml:28:13-35 is also present at [com.android.support:customtabs:25.4.0] AndroidManifest.xml:25:13-35 value=(25.4.0). Suggestion: add 'tools:replace

FirebaseRecyclerAdapter with empty view

混江龙づ霸主 提交于 2019-11-28 17:06:31
I know there are lot of ways to have an empty view for a RecyclerView. But my question is for FirebaseRecyclerView. My layout is: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <android.support.v7.widget.RecyclerView android:id="@+id/feed_recycler_view" android:layout_width="match_parent" android:layout_height="match_parent" android:scrollbars="vertical" /> <ProgressBar android:id="@+id/feed_loading" style="?android:attr/progressBarStyle" android:layout_width="wrap_content" android:layout

FirebaseRecyclerAdapter - populateViewHolder is not populating the data for first time it runs?

拜拜、爱过 提交于 2019-11-28 14:01:22
FirebaseRecyclerAdapter - populateViewHolder is not populating the data for the first time it runs but when I closed the app and opened it, the data is binded in RecyclerView View Holder. I am not getting why data is not populating for first time, it is showing blank screen Here's my MainActivity mDatabase = FirebaseDatabase.getInstance().getReference(); // [END create_database_reference] mRecycler = (RecyclerView) findViewById(R.id.recycler_view); mRecycler.setHasFixedSize(true); setSupportActionBar(toolbar); final LinearLayoutManager layoutManager = new LinearLayoutManager

Firebase UI authentication with google fails with message (code:10 message:10)

微笑、不失礼 提交于 2019-11-28 11:47:18
问题 I've made a chat app that uses Firebase's feature Real-time database . I face a problem with google authentication. The problem started when I downloaded the app from the Play Store, the authentication was working perfectly when I was running the app in debug mode. When users try to sign in they get a toast message code:10 message:10 . I would like to note here that: I've added the SHA1 fingerprint. How can I solve this? *Not sure if this is helpful but I've followed step by step this

How can I load more data on scrolling down with FirebaseIndexRecyclerAdapter

吃可爱长大的小学妹 提交于 2019-11-28 10:45:22
问题 I have data that was insert PostKey and Rating by cloud function. Following this picture newfeed, post and I use FirebaseIndexRecyclerAdapter to get data FirebaseIndexRecyclerAdapter<Post, FeedFragment.PostViewHolder> firebaseIndexRecyclerAdapter = new FirebaseIndexRecyclerAdapter<Post, FeedFragment.PostViewHolder>( Post.class, R.layout.post_row, FeedFragment.PostViewHolder.class, FirebaseRef.mNewfeedRef.child(UID), FirebaseRef.mPostRef ) { Solution that I was thinks is First one is

Google sign-in Android with Firebase - statusCode DEVELOPER_ERROR

♀尐吖头ヾ 提交于 2019-11-28 09:03:31
I try to implement Google login in my Firebase connected Android app. When I run the app and press Google Sign In button - nothing happen. And I receive this error in onActivityResult: Status{statusCode=DEVELOPER_ERROR, resolution=null} . My code looks like this: protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == REQUEST_CODE_GOOGLE_LOGIN) { GoogleSignInResult result = Auth.GoogleSignInApi.getSignInResultFromIntent(data); if (result.isSuccess()){ GoogleSignInAccount account = result.getSignInAccount(); String emailAddres = account.getEmail();

How to get Keys and Values using FirebaseListAdapter

蹲街弑〆低调 提交于 2019-11-28 05:55:34
问题 this code get the values and set them in listview i want to get keys to use them also, please see the image to view the database example FirebaseListAdapter firebaseListAdapter = new FirebaseListAdapter<String>(this, String.class, R.layout.users_list, usersUrl) { @Override protected void populateView(View view, String base64Image, int i) { //((TextView) view.findViewById(android.R.id.text1)).setText(s); byte[] imageAsBytes = Base64.decode(base64Image.getBytes(), Base64.DEFAULT); Bitmap bitmap

FirebaseRecyclerAdapter doesn't recognize first layout as a position

。_饼干妹妹 提交于 2019-11-28 02:03:23
My Title is kind of hard to understand but basically when I add items into my database is should display it in a RecyclerView . Now in my RecyclerView I have two layouts but the problem is the first item of my database goes behind my first item in my other layout. So if I have 3 items in my database, it shows only 2 items from the database and the first item hides behind my first item in the RecyclerView which is a different layout that does not use the database at all. This is my code: FirebaseRecyclerOptions<Event> firebaseRecyclerOptions = new FirebaseRecyclerOptions.Builder<Event>()

How do I setup FirebaseAdapter in Android Studio?

▼魔方 西西 提交于 2019-11-28 01:43:02
I am trying to read data in real time from Firebase into a custom ArrayAdapter. From my research, it looks like FirebaseListAdapter has built in functionality to handle this. However, I am unable to get my code to recognize the FirebaseListAdapter class. How do I get the FirebaseListAdapter to work? Gradle File apply plugin: 'com.android.application' android { compileSdkVersion 24 buildToolsVersion "24.0.0" defaultConfig { applicationId "com.example.quizzingcompanion" minSdkVersion 15 targetSdkVersion 24 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles

How to update a FirebaseRecyclerAdapter's query

穿精又带淫゛_ 提交于 2019-11-28 01:30:52
If I have a Query a , and I'm setting it to a FirebaseRecyclerAdapter . Then, I want to constantly create a new Query and update the FirebaseRecyclerAdapter . E.G: query = database.orderByChild("child"); query2 = database.orderByChild("child2"); adapter = new FirebaseRecyclerAdapter<...>(...,...,...,query){ ... } Now, after 3 seconds, I'm looking for a method to change the query. Similar to this: adapter.setQuery(query2); Is there an existing method for this? Or was Firebase, like always, too lazy to even work on this? Firebase Database queries are immutable: you cannot change the properties