Posts by Amelco • 142 points
5 posts
-
2
votes5
answers3128
viewsA: How to get Firebase data and insert it into a Textview?
The problem that dataSnapshot is returning null is that its Databasereference is not correct. That is, there is no data to be collected in this path passed to Databasereference. For each level of…
-
1
votes1
answer481
viewsA: Error after updating Android Studio to version 3.0.1
With version 3.0 of Andoridstudio, we have the AAPT2 enabled by default in all projects. This problem happens in some projects prior to AS 3.0 when the application Manifest is not properly…
-
1
votes3
answers529
viewsA: Turn Jsonobject into Jsonarray
To turn a Jsonobject into Jsonarray you will have to go through all the keys and go adding the children in Jsonarray. Thus: {"1":{"a":1,"c":0},"2":{"a":1,"c":0},"3":{"a":1,"c":0}} // JSONObject que…
-
2
votes2
answers1428
viewsA: Open a new Activity from within a Fragment
Analyzing Stacktrace, the problem is in the application theme. You should add the following lines in the theme for this reaction to work: <item name="windowActionBar">false</item>…
-
2
votes1
answer1348
viewsA: Google API - Autocomplete does not bring ZIP
The problem with this approach is that Google location data does not always have the zip code, as you may have noticed. Therefore, to work with Ceps, I suggest the use of Web Services like the…