当前位置:网站首页>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");
边栏推荐
- "Three routines" of digital collection market
- Hash slot of rediscluster cluster cluster implementation principle
- Dataset filling data, and the use of rows and columns
- How to configure DDR3 of dm8148
- Software testing and quality final review
- ACM notes
- Study notes 22/1/11
- A single node obtains the lock lock of the order number
- 股票炒股注册开户靠谱吗?安全吗?
- Co process, asyncio, asynchronous programming
猜你喜欢

软件测试与质量期末复习

flex布局

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

nlp序列完全可以模拟人脑智能

Software design of resistance test board

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

ZYNQ_ IIC read / write m24m01 record board status

Configuring multiple instances of MySQL under Linux

Online WPS tool

Redis cluster deployment and application scenarios
随机推荐
打新债注册开户靠谱吗?安全吗?
Evaluation of inverse Polish expression < difficulty coefficient >
sql主从复制搭建
Redis one master multi slave cluster setup
22/02/15 study notes
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
SOC clock configuration
Llvm and clang
NDK cross compilation
Installing redis on Linux
【js】-【节流、防抖函数】
Ambari (IX) --- use expect to realize no interaction in ambri server setup phase (valid for personal test)
8 figures | analyze Eureka's first synchronization registry
Investment transaction and settlement of the fund
PLC -- Notes
SQL analysis (query interception analysis for SQL optimization)
挖财注册开户靠谱吗?安全吗?
SOC timer and interrupt configuration
Hj21 simple password
HJ delete the character with the least number of occurrences in the string