app1 跳转方:
在跳转函数中执行:

Intent intent = new Intent();       intent.setComponent(new ComponentName("com.junrui.yhtd","com.junrui.yhtd.ui.record.MedicalRecordActivity"));   //第一个参数为app2的包名,第二个参数为app2的被调转界面activity    intent.putExtra("recordId","7398");//携带参数    intent.setAction("MedicalRecordDetail");   //app2中被调转界面的action    startActivity(intent);  

app2 被跳转方:
在mainfest文件中配置被调转界面
主要是添加action属性,用来过滤。

 <activity                android:name="com.junrui.yhtd.ui.record.MedicalRecordActivity"                android:configChanges="orientation|keyboardHidden|screenSize"                android:screenOrientation="portrait"                android:theme="@android:style/Theme.NoTitleBar"                android:windowSoftInputMode="adjustResize|stateHidden">            <intent-filter>                <action android:name="MedicalRecordDetail"/>            intent-filter>        activity>

更多相关文章

  1. C语言函数的递归(上)
  2. android 类型转换 工具函数
  3. android Binder机制深入浅出
  4. android - JNI接口函数 (2)
  5. Android(安卓)ViewPager分页功能
  6. Android(安卓)利用viewpager 来实现Frament 有导航条
  7. Android中把集合显示到listview上
  8. Android输入法切换引导功能
  9. Android切换系统语言,自动更新应用界面显示语言

随机推荐

  1. [置顶] 我的Android进阶之旅------>Andro
  2. Android DEX 方法超过64K限制
  3. android--创建快捷方式和判断是否已经创
  4. Android ApiDemos示例解析(137):Views->L
  5. 高煥堂的四本Android开发新書(簡體完整版
  6. Android的内存优化相关记录
  7. ubuntu9.10安装android SDK
  8. Android中垃圾回收日志信息
  9. android获取手机型号和系统版本号
  10. 【Android】Android处理Home键方法小结