Posts by Rosário Pereira Fernandes • 1,086 points
75 posts
-
0
votes1
answer381
viewsA: Consultation at Firebase
The question is not very clear, but from what I understand, you’re trying to do something like this: var contando = firebase.database() .ref().child("Contador/number"); contando.once("value",…
-
1
votes1
answer126
viewsA: Consultations with Firebase
You’re having this mistake because the method onDataChange() is asynchronous, it means that when you call the child(cpf), the cpf is still null. You’d have to read the sign inside the onDataChange()…
-
0
votes1
answer49
viewsA: EN (Spinner) Firebase Exception: Found Conflicting getters for name: getAdapter
You are passing View Spinner to Firebase. Enquantp should pass the value obtained from Spinner:…
-
1
votes1
answer1316
viewsA: Get the value of my generated id with push in firebase
A String s specifies the key of the previous widget. The first s is NULL because there is no key before the first key in the database. And following this logic, the last s will always be the…
-
0
votes1
answer154
viewsA: Thumbnail image by Javascript and send to Firebase Storage
You can use the Firebase Cloud Functions for such. They have even a example here that uses Imagemagick to generate the thumbnail: 'use strict'; // [START import] const functions =…
-
1
votes1
answer100
viewsA: Simple login Firebase
Firebase does not allow you to perform a 2-condition Query. Which means you will need to log in in 2 steps: 1.Search for the user with this ID 2.Check that the password is correct: public void…
-
0
votes2
answers1710
viewsA: Textview with scratched letter
Another solution that works on Views that don’t have Paintflags: tv.setText(s, TextView.BufferType.SPANNABLE); Spannable spannable = (Spannable) tv.getText(); spannable.setSpan(new…
-
1
votes1
answer280
viewsA: Error android Studio + Firebase
This is because you are accessing the BD variable before it is initialized on this line: myRef = BD.getReference("-KSXUo45LKXpWMOX-BfY"); Initialize the variable before using it: //BD BD =…
-
0
votes2
answers1093
viewsA: How to store "direct link" to an image using Firebase Storage
I believe what you seek is Download URL (which can also be obtained from the Firebase console). To not have to make upgrade deploys, you can store this url in your database.…
firebaseanswered Rosário Pereira Fernandes 1,086 -
2
votes1
answer641
viewsA: Perform an action after each character typed in an Edittext
You can use the Textwatcher: valor.addTextChangedListener(new TextWatcher() { @Override public void onTextChanged(CharSequence s, int start, int before, int count) { } @Override public void…
androidanswered Rosário Pereira Fernandes 1,086 -
2
votes1
answer505
viewsA: How to check if file exists in Firebase web Storage?
You can try to get the image download URL. If the error object_not_found is because she doesn’t exist. var ref = firebase.storage().ref('xyz'); var urlImagem; ref.getDownloadURL().then(function(url)…
-
0
votes1
answer31
viewsA: Firebase Cloud Function being called twice
That’s because you’re making one more set() in their role. And onCreate is executed whenever a set. To avoid the second execution, you can replace the set for update: exports.myFunction =…
-
0
votes1
answer396
viewsA: Case insensitive search Firebase
At the moment, Firebase is unable to perform case insensitive searches. But an alternative for you to have the desired result would be: Add a second field that keeps the name of the Organization in…
-
0
votes1
answer58
viewsA: Error in Parceler lib annotation
According to the Github do Parceler, To use Parceler you have to use these 2 lines in Gradle: implementation 'org.parceler:parceler-api:1.1.9' annotationProcessor 'org.parceler:parceler:1.1.9'…
androidanswered Rosário Pereira Fernandes 1,086 -
0
votes1
answer88
viewsA: How to use Promise in Firebase Query?
From what I noticed, you want a location via your key (id). I suggest you use the function once(). According to the documentation the once() returns a Promise. Then you would: this.queryMAP = ()…
-
0
votes1
answer173
viewsA: Error reading Firebase data
That’s because they changed the constructor of FirebaseRecyclerAdapter. Now you have to pass one FirebaseRecyclerOptions to the constructor. So: FirebaseRecyclerOptions<TelefoneFixo> opcoes =…
-
0
votes1
answer920
viewsA: Import data to Firebase with JSON file
The Keys are generated through the function push() in Databasereference. On android, you can generate them through code: private DatabaseReference mDatabase; // ... mDatabase =…
-
0
votes5
answers3128
viewsA: How to get Firebase data and insert it into a Textview?
You only created the instance of the User object, but did not initialize its attributes, so uid returns null. Boot user uid with Firebaseuth uid: public class PerfilActivity extends…
-
0
votes1
answer90
viewsA: Comparing data returned from BD
Just use one cycle: boolean estaNaLista = false; for(int i=0; i < arrayList.size();i++) if(arrayList.get(0).equalsIgnoreCase("Uid X")) { estaNaLista = true; break; } //A este ponto o estaNaLista…
-
0
votes1
answer379
viewsA: Firebase: How to load random data into a Recyclerview?
I recommend you add one more variable to your model class. Something like an "id". And store random values in it (From 0 to 15 for example). Then you create a method that generates random values…
-
0
votes1
answer59
viewsA: Error: Firebase API initialization Failure
You have to put Firebase Core in Gradle: compile 'com.google.firebase:firebase-core:9.4.0' compile 'com.google.firebase:firebase-messaging:9.4.0' compile 'com.google.firebase:firebase-auth:9.4.0'…
-
0
votes1
answer341
viewsA: Firebase database query in ordered "relation"
The structure is suitable? For what you intend to do, I believe you are well suited. You can list all a user’s Missions sorted by value? Yes. Try the code below: var missions =…
-
1
votes1
answer153
viewsA: Click on the Gridview photo and show in another Activity
In your Adapter, place a Listener in the pictureView: imageView.setImageBitmap(bm); imageView.setId(position); imageView.setLayoutParams(new GridView.LayoutParams(150, 150));…
-
1
votes3
answers646
viewsA: Import eclipse project to latest Android Studio API
Manually change the code to inherit from Appcompatactivity. About widgets (Edittext, Button, etc.), check your Styles.xml file. See which theme is set. Try to use a theme you inherit from…
-
1
votes1
answer818
viewsA: How to decrease the apk size generated in Unity?
The size of the Unity generated apk depends on the Assets that Voce imported. Import only Asset Packages that you will need. Sorry, my Unity is in English, so here comes Assets. I don’t know how it…