【发布时间】:2018-05-03 01:51:21
【问题描述】:
所以我正在尝试制作一个显示组中当前成员的回收站视图。下面我有一张我的数据库的图片,基本上我有一个 groupId 是创建者的 uid,下面我们有 3 个用户和一些其他不相关的数据。
问题是我不确定如何获取特定的 uid,以便我可以像这样获取他们的个人资料信息
groupsDatabase = FirebaseDatabase.getInstance().getReference().child("Groups").child(groupUid);
我也使用这样设置的动态链接
private void attachParameter(){
Uri link = Uri.parse("https://y95rt.app.goo.gl/Lesn")
.buildUpon()
.appendQueryParameter("groupUid", groupUid)
.build();
generateDynamicLink(link.toString());
}
private void generateDynamicLink(String link) {
Uri dynamicLink = Uri.parse("https://y95rt.app.goo.gl")
.buildUpon()
.appendQueryParameter("link", link)
.appendQueryParameter("apn", "c.kristofer.jaxxx")
.build();
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/plain");
intent.putExtra(Intent.EXTRA_SUBJECT, "Join my group for Lesn");
intent.putExtra(Intent.EXTRA_TEXT, dynamicLink.toString());
startActivity(intent);
}
感谢任何答案/建议,并且也愿意改变我的结构。谢谢
【问题讨论】:
标签: java android firebase firebase-realtime-database