Andriod期末总结
-----------------------------------------1.广播代码---------------------
广播BroadcastReceiver:传递数据
使用步骤:
一、发送
//1.开启意图Intent
Intent intent = new Intent();
//2.向Intent中添加需要传递的数据
intent.putExtra("content", "放假回来第一天就要上课,内心是拒绝的!");
//3.设置发送的广播的频道(action)
inte
原创
2021-07-09 20:20:08 ·
127 阅读 ·
0 评论