Activity的打开方式有两种打开Activity的时候需要指定意图Intent

    1. 显式意图:创建Intent需要明确指定被打开的Activity

        Android显式意图和隐式意图的区别

2. 隐式意图:通过匹配 action,category datamimeType ,flag

Android显式意图和隐式意图的区别

3.Intent 可以传递8基本数据类型   还可以传递对象  该对象 但是必须   实现  Serializable

    Bundle对象  封装了八大基本数据类型  就是一个HashMap

如:

Intent intent=new Intent(this,class);

Bundle bundle = new Bundle();//里面可以传递对象和八大基本类型

intent.putExtras(bundle);

相关文章:

  • 2021-11-29
  • 2022-12-23
  • 2021-06-24
  • 2021-08-25
  • 2022-12-23
  • 2022-12-23
  • 2021-07-16
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-18
相关资源
相似解决方案