Tag: 火力

我如何检索随机值Firebase数据库

我有一个firebase数据库,其中有一棵树,看起来像这样 tvthemetunes airwolf value “url to air wolftheme” eastenders value “url to eastenders” knight rider value “url to nightrider” 等等… 在我的应用程序用户下载项目和项目下载电视主题将从url播放。 我可以让它在单个项目的值事件时正常工作。 我希望它从列表中随机选择一个值。 怎么能实现这个? 编辑可以使用循环视图方法,因为我的应用程序不包含任何 这是我的单项代码 protected Dialog onCreateDialog(int id) { switch (id) { case progress_bar_type: //Here is where i play the theme getthemetune(); pDialog = new ProgressDialog(c); pDialog.setTitle(MY Title); pDialog.setMessage(MY Message); pDialog.setIcon(R.mipmap.ic_launcher); pDialog.setIndeterminate(false); pDialog.setMax(100); […]