当前位置:网站首页>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");
边栏推荐
- Ambari (VII) --- ambari integrated hue4.2 document (valid for personal test)
- Flex layout
- Install haproxy
- flutter 实现摇一摇功能
- HJ string sort
- Configuring MySQL multi instance master-slave synchronization for Linux
- What is the lifecycle of automated testing?
- es数据导出csv文件
- Co process, asyncio, asynchronous programming
- HJ prime factor
猜你喜欢

Software design of resistance test board

Section VII starting principle and configuration of zynq

ES6 use of return in arrow function
![[thanos source code analysis series]thanos query component source code analysis](/img/e4/2a87ef0d5cee0cc1c1e1b91b6fd4af.png)
[thanos source code analysis series]thanos query component source code analysis

【js】-【DFS、BFS应用】-学习笔记

At 19:00 on Tuesday evening, the 8th live broadcast of battle code Pioneer - how to participate in openharmony's open source contribution in multiple directions

What is EC blower fan?

Design and implementation of spark offline development framework

HJ prime factor
![[shangpinhui] project notes](/img/aa/043dd16c20348f1f80ca5e9e4ad330.png)
[shangpinhui] project notes
随机推荐
券商注册开户靠谱吗?安全吗?
Software design of resistance test board
剑指Offer||:链表(简单)
SQL analysis (query interception analysis for SQL optimization)
HJ21 简单密码
QT -- communication protocol
NDK cross compilation
本周二晚19:00战码先锋第8期直播丨如何多方位参与OpenHarmony开源贡献
ES6 use of return in arrow function
Porting ucosiii to stm32f429
Is it safe to open an account on Dongfang fortune
【js】-【DFS、BFS应用】-学习笔记
Resizing node of rediscluster cluster cluster mode
22/02/14 study notes
asp. Net registration page
逆波兰表达式求值<难度系数>
HJ string sort
Is it reliable for securities companies to register and open accounts? Is it safe?
HJ base conversion
SOC timer and interrupt configuration