当前位置:网站首页>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");
边栏推荐
- HJ delete the character with the least number of occurrences in the string
- asp. Net datalist when there are multiple data displays
- SOC clock configuration
- 7-1 understand everything
- Sentinel mechanism of redis cluster
- Disposition Flex
- asp. Net datalist to display product information and pictures
- ZYNQ_ IIC read / write m24m01 record board status
- Resizing node of rediscluster cluster cluster mode
- Kubernetes cluster command line tool kubectl
猜你喜欢

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

Section 5: zynq interrupt

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

Recommended system series (Lecture 5): Optimization Practice of sorting model

Redis one master multi slave cluster setup

Path alias specified in vite2.9

Hash slot of rediscluster cluster cluster implementation principle

HJ prime factor

Section VI UART of zynq

MySQL installation and environment variable configuration
随机推荐
HJ delete the character with the least number of occurrences in the string
SOC timer and interrupt configuration
Static resource compression reduces bandwidth pressure and increases access speed
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
打新债注册开户靠谱吗?安全吗?
Introduction and several months' experience of extending the solution thanos of Prometheus
HJ明明的随机数
es6箭头函数中return的用法
Section 5: zynq interrupt
Investment transaction and settlement of the fund
How to insert a single quotation mark into a table as a data type in Oracle pl/sql
Recommended system series (Lecture 5): Optimization Practice of sorting model
HJ base conversion
Is it safe to open an account on Dongfang fortune
Configuring multiple instances of MySQL under Linux
Today's notes 22/1/7
HJ prime factor
ES6 use of return in arrow function
[thanos source code analysis series]thanos query component source code analysis
7-1 understand everything