英文:
android studio retrieve data from firebase database on button click
问题
Sure, here's the translation:
请你帮忙做这个,我想将一些文本保存在 Firebase 中,并在按钮点击时显示这些文本。我不想把这些文本放在我的应用程序中,因为我会随着时间的推移进行一些更改,而且我不想每次都发送更新。我已经寻找了一个星期的指南,并尝试了很多代码,但都没有成功。
英文:
Can you please help to do this, I want to save some text in firebase, and display those text on button click. I don't want to put those text on my app, because I will make some change over time, and I don't want to send update every time. I have been look for a guide for a week now and tried a lot of code but no success.
答案1
得分: 1
在Firebase中有两种存储选项。
- Firebase数据库
- Firebase存储
如果您只想保存数据,可以选择Firebase实时数据库。
如果您想存储诸如图像等文件,可以选择Firebase存储。
它们都是实时数据库。
由于您提到您想存储数据
-
要从Firebase数据库读写数据,可以参考此链接。
英文:
There are two storage options in Firebase.
1.Firebase Data Base
2.Firebase Storage
If you want to save data only, you can go with Firebase real time database.
If you want to store files like images..etc,you can go with Firebase Storage.
Both of them are real time database only.
since you mentioned that you want to store data
-
To read and write from Firebase database data this will help you.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论