简体   繁体   English

如何获取firebase实时数据库usnig android studio java

[英]How can get firebase real time database usnig android studio java

[{ "name": "Style Shoes", "id": "123", "image": "https://firebasestorage.googleapis.com/v0/b/ecomfirebase-39a63.appspot.com/o/1886_side.jpeg?alt=media&token=c040a1e3-e05d-457a-ac67-dbb77934ba5d", "size": 6, "price": 409.45 [{“名称”:“风格鞋”,“id”:“123”,“图像”:“https://firebasestorage.googleapis.com/v0/b/ecomfirebase-39a63.appspot.com/o/1886_side。 jpeg?alt=media&token=c040a1e3-e05d-457a-ac67-dbb77934ba5d", "大小": 6, "价格": 409.45

}, { "name": "Google Assitences", "id": "124", "image": "https://firebasestorage.googleapis.com/v0/b/ecomfirebase-39a63.appspot.com/o/5fca8733bdb90c520c4127a2_EN_Google_Blog_Visual_NEW_EN.jpg?alt=media&token=087c1e24-31a0-4fba-bb5a-022d7e6800db", "size": 0, "price": 5499.45 }, { "name": "Google Assitences", "id": "124", "image": "https://firebasestorage.googleapis.com/v0/b/ecomfirebase-39a63.appspot.com/o/5fca8733bdb90c520c4127a2_EN_Google_Blog_Visual_NEW_EN .jpg?alt=media&token=087c1e24-31a0-4fba-bb5a-022d7e6800db", "大小": 0, "价格": 5499.45

}] }]

I think you want to retrieve data from firebase real time database for that you need to create a function and a adapter to pass data read this documentation read this and follow the following code我认为您想从 firebase 实时数据库中检索数据,为此您需要创建 function 和适配器以传递数据阅读此文档阅读此文档并遵循以下代码

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM