Android   Intent 的几种启动活动的方式
来源:互联网 发布:java多线程详解 编辑:程序博客网 时间:2024/06/07 22:17
一:显示
Intent intent = new Intent(Intent.ACTION_DIAL);startActivity(intent);
二、一般操作,运用URI(Android查看URI的方案,询问哪个活动处理VIEW)
Intent intent = new Intent(Intent.ACTION_VIEW);intent.setData(Uri.parse("http://www.google.com");startActivity(intent);
三、使用组件直接调用
Intent intent = new Intent(activity, BasicViewActivity.class);
四、通过action、category调用
0 0
- Android   Intent 的几种启动活动的方式
- android-Intent启动activity的几种方式-隐式Intent
- 第四例:Intent启动Activity的几种方式(一)
- 活动的启动方式
- android学习---活动的启动方式
- Android--Intent启动活动
- android 关于intent传递类对象的几种方式
- Android Intent和按钮响应事件的几种方式
- Intent的几种有关Activity启动的方式与Activity和Task的启动模式
- Intent的几种有关Activity启动的方式与Activity和Task的启动模式
- Intent的几种有关Activity启动方式和Activity和Task的的启动模式
- Intent的几种有关Activity启动的方式与Activity和Task的启动模式
- Intent的几种有关Activity启动的方式与Activity和Task的启动模式
- Android学习之路:活动的四种启动方式
- android启动activity的几种方式
- android启动activity的几种方式
- Android 启动app的几种方式
- 实例化Intent的几种方式
- 本地Service
- Service的生命周期
- Activity 之间的交互
- 单件模式Singleton Pattern
- 命令模式
- Android   Intent 的几种启动活动的方式
- 数组与指针的区别
- C++中引用和指针的区别
- Java中的线程间协作
- Java靜態初始化與構造方法的執行順序
- shell 中 关于 $
- CComboBoxEx 扩展组合框
- 重定向 关闭文件描述符等
- 重定向 禁止命令输出