Android Studio点击按钮从Firebase数据库检索数据

huangapple go评论72阅读模式
英文:

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中有两种存储选项。

  1. Firebase数据库
  2. 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.

huangapple
  • 本文由 发表于 2020年8月21日 00:10:42
  • 转载请务必保留本文链接:https://go.coder-hub.com/63509117.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定