当前位置:网站首页>Activity implicit jump
Activity implicit jump
2022-06-28 07:58:00 【xiyangyang8110】
module A rely on module B,B Medium activity Normal jump to A Medium activity, And can transfer parameters normally
Example
1 B in
Intent intent = new Intent();
intent.setAction("io.winkong.marinsmart.chathistory");
intent.putExtra("manage", message.getSender());
startActivity(intent);

2 A in , To configure , Value
<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");
边栏推荐
- Tencent continued to lay off staff in the second half of the year, and all business groups reduced by at least 10%. What do you think of this? Followers
- ACM notes
- Airflow2 configuration windows azure SSO details based on oauth2 protocol
- How to configure DDR3 of dm8148
- [JS] - [DFS, BFS application] - learning notes
- Software design of power control board
- Leetcode learning records
- Installing redis on Linux
- HJ score ranking
- SOC serial port configuration
猜你喜欢

Tencent continued to lay off staff in the second half of the year, and all business groups reduced by at least 10%. What do you think of this? Followers

Ambari (V) ---ambari integrated Azkaban (valid for personal test)

Redis cluster deployment and application scenarios

asp. Net error "/" server error in the application. String or binary data would be truncated. The statement...

软件测试与质量期末复习
![[shangpinhui] project notes](/img/aa/043dd16c20348f1f80ca5e9e4ad330.png)
[shangpinhui] project notes

Generation and verification of JWT token

PLC -- Notes

Software design of power control board

asp. Net registration page
随机推荐
Ambari (VIII) --- ambari integrated impala document (valid for personal test)
Ambari (VI) -- ambari API use
Is it reliable to register and open an account for stock speculation? Is it safe?
MMR rearrangement (similarity is calculated by editing distance and repeatability)
Design and implementation of spark offline development framework
[shangpinhui] project notes
Implementation of commit message standardized control in large projects
Section VI UART of zynq
Explanation and application of instr() function in Oracle
Spark 离线开发框架设计与实现
7-1 understand everything
ACM笔记
自动化测试的生命周期是什么?
sql分析(查询截取分析做sql优化)
Kubernetes理论基础
A single node obtains the lock lock of the order number
How to insert a single quotation mark into a table as a data type in Oracle pl/sql
22/02/15 study notes
Ice, protobuf, thrift -- Notes
SQL Master slave Replication Build