当前位置:网站首页>Activity隐式跳转
Activity隐式跳转
2022-06-28 07:53:00 【xiyangyang8110】
module A依赖module B,B中的activity可正常跳转到A中的activity,并可正常传递参数
示例
1 B中
Intent intent = new Intent();
intent.setAction("io.winkong.marinsmart.chathistory");
intent.putExtra("manage", message.getSender());
startActivity(intent);

2 A中,配置,取值
<activity
android:name=".activity.ChatHistoryActivity"
android:exported="true" >
<intent-filter>
<action android:name="io.winkong.marinsmart.chathistory"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
String manage = getIntent().getStringExtra("manage");
边栏推荐
- 云原生:云计算技术再次升级 开启全面云开发时代
- GoLand IDE and delve debug Go programs in kubernetes cluster
- Analyze 5 indicators of NFT project
- sql分析(查询截取分析做sql优化)
- 本周二晚19:00战码先锋第8期直播丨如何多方位参与OpenHarmony开源贡献
- SOC serial port configuration
- HJ prime factor
- Is it safe for flush to open an account online
- 软件测试与质量期末复习
- MySQL installation and environment variable configuration
猜你喜欢

Configuring MySQL multi instance master-slave synchronization for Linux

The solution of "user account control to continue, please enter administrator user name and password" appears in win10 Professional Edition

Software design of resistance test board

asp. Net registration page

Kubernetes理论基础

GoLand IDE and delve debug Go programs in kubernetes cluster

Safety training is the greatest benefit for employees! 2022 induction safety training for new employees

How to configure DDR3 of dm8148

Airflow2 configuration windows azure SSO details based on oauth2 protocol

flex布局
随机推荐
pip 更新到最新的版本
Configuring multiple instances of MySQL under Linux
Kubernetes cluster command line tool kubectl
Host is not allowed to connect to this MySQL server
Study notes 22/1/19 and 22/1/20
es6箭头函数中return的用法
Is it safe for flush to open an account online
Investment transaction and settlement of the fund
Section 8: DMA of zynq
软件测试与质量期末复习
Upgrade HDP spark to spark 2.4.8 without upgrading ambari
【尚品汇】项目笔记
股票炒股注册开户靠谱吗?安全吗?
Ambari (IX) --- use expect to realize no interaction in ambri server setup phase (valid for personal test)
Idea package together, using compact middle packages to solve &
Online WPS tool
MySQL installation and environment variable configuration
HJ base conversion
PLC -- Notes
A single node obtains the lock lock of the order number