Firebase-with-Android
kandi X-RAY | Firebase-with-Android Summary
kandi X-RAY | Firebase-with-Android Summary
Firebase-with-Android
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Handles an action select item
- Load the log in view
- Initialize view
- Initialize the activity
- Initializes the Activity
Firebase-with-Android Key Features
Firebase-with-Android Examples and Code Snippets
Community Discussions
Trending Discussions on Firebase-with-Android
QUESTION
I'm following the guide here for removing values from my firebase database. Here is the structure of my data.
...ANSWER
Answered 2017-Feb-17 at 21:43When you execute a query against the Firebase Database, there will potentially be multiple results. So the snapshot contains a list of those results. Even if there is only a single result, the snapshot will contain a list of one result.
So in your case, the snapshot is not the item, but it's the total result of the query. Hence its getRef()
returns the location on which you fired the query.
The solution is to loop over the results and delete each individually:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Firebase-with-Android
You can use Firebase-with-Android like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the Firebase-with-Android component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page