Android Access Firebase With Keys With Spaces In Them
This might be a dumb question but I couldn't find any examples on google's firebase site. If I have a key in the firebase database of 'First Name' and then I call FirstNameClass f
Solution 1:
Try using @PropertyName
. Your model should look like this:
FireNameClass{
@PropertyName("First Name")public String FirstName;
...
}
Note: I haven't tried it. If it doesn't work, I think I know another way to do it and will update this answer
Hope this helps
Solution 2:
This got me most of the way there, however I needed to modify where @PropertyName went. Check this answer: https://stackoverflow.com/a/42635329/4151220
Post a Comment for "Android Access Firebase With Keys With Spaces In Them"