java - FCM Listview but I can not list
问题描述
**I can not show listview from fcm data notification where i did error ı didn't understand show time but don't show title **
setContentView(R.layout.fcm_show);
listshow= (ListView) findViewById(R.id.listview);
String title =getIntent().getStringExtra("title");
String zaman = java.text.DateFormat.getDateTimeInstance().format(new Date());
String body =getIntent().getStringExtra("body");
ArrayAdapter<String> veriAdaptoru=new ArrayAdapter<String>
(this, R.layout.fcm_popup, R.id.tv_output, Collections.singletonList(title));
listshow.setAdapter(veriAdaptoru);
veriAdaptoru.notifyDataSetChanged();
解决方案
推荐阅读
- python - 在 Python 请求正文中发布特殊字符
- java - 如何获取 RestTemplate 连接超时属性值?
- wordpress - get_footer 钩子在我的 wordpress 插件中调用了两次
- html - 如何对齐使用文件选择器的 Bootstrap 4 按钮?
- android - 新的 Google Play 控制台订单 UTC 时间
- python - 在 Boto3 put_object 标记中支持非 ASCII 字符
- azure - 如何在 Azure Databricks 中构建 ETL 项目?
- javascript - 我想将excel表中的数据样本存储到javascript中的数组中
- mongodb - 如何使用 MongoDB 进行分页
- node.js - 我的 node_modules 文件夹中的 Elastic Beanstalk SymLink