App跳转到App
来源:互联网 发布:用c语言输出99乘法表 编辑:程序博客网 时间:2024/04/18 20:53
一、使用包名进行跳转,app相对独立,各自有各自的栈
PackageManager packageManager = getPackageManager();
Intent intent = new Intent();
intent = packageManager.getLaunchIntentForPackage("com.example.broadcast");
intent.putExtra("name", "1111111");
startActivity(intent);
二、使用具体的类跳转,app不独立,只有第一个App的栈
Intent intent = new Intent();
intent.setComponent(new ComponentName("com.example.broadcast",
"com.example.broadcast.SendActivity"));
startActivity(intent);
三、使用具体的类跳转,app独立,各自有App的栈
Intent intent = new Intent();
intent.setComponent(new ComponentName("com.example.broadcast",
"com.example.broadcast.SendActivity"));
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
- App跳转到App
- 网页跳转到APP
- 从一个app跳转到另一个app
- 从一个App跳转到另一APP
- app跳转到app store评分界面
- App跳转到系统设置
- ios 跳转到app store
- app跳转到AppStore评分
- App跳转到应用市场
- iOS App 跳转到 AppStore
- iOS 跳转到 APP Store
- iOS App 跳转到 AppStore
- android跳转到地图app
- 网页跳转到指定APP
- APP跳转到设置中
- Android跳转到其他APP
- 微信跳转到app
- app跳转app
- 15.Transition动画效果私有API说明
- JSPatch-动态更新IOS APP
- PICT使用教程(设计测试用例工具)
- .net uploadify 传递参数 多文件上传
- 抛异常:Formatter.java:2646
- App跳转到App
- poj 1634
- Linux top命令的用法详细详解
- android屏幕适配建议 (二)
- 数据库 a表左连接b表,a中一条数据对应b中多条数据,如何只取b表中createDate最大的一条
- java方法,构造方法
- ZOJ 2972Hurdles of 110m(DP)
- 劳斯判据的应用_20160216
- GPS 定位模块数据提取