Intent android基础二
来源:互联网 发布:淘宝手表正品店 编辑:程序博客网 时间:2024/06/08 13:46
Intent跳转分为以下几种情况:
1.没有返回值的跳转
Intent i=new Intent();
i.setClass(当前activity.class,目标activity.class);
startActivity(i);
2.有返回值的跳转
Intent i=new Intent();
i.setClass(当前activity.class,目标activity.class);
startActivity(i);
startActivityForResult(i,状态值(int型))
3.intent打开浏览器并打开指定页面
Intent i=new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse("http://www.baidu.com"));
startActivity(i);
4.intent搜索关键字Intent i=new Intent(Intent.ACTION_WEB_SEARCH);
i.setData(Uri.parse("http://www.baidu.com"));
startActivity(i);
5.拨打指定电话
Intent i=new Intent(Intent.ACTION_WEB_SEARCH);
i.setData(Uri.parse("tel:18855556666"));
startActivity(i);
0 0
- Intent android基础二
- Android 基础学习 (二) : Intent 类
- Android基础篇之Intent(二)-Intent使用
- Android基础总结二:Intent总结二(Intent传递数据的几种类型)
- <java基础>零起点学Android(二)Intent 意图
- Android Intent详解二
- Android基础-intent详解
- Android-Intent基础
- Android基础-1(intent)
- 【android基础】Intent
- [Android基础]Intent
- Android基础-----Activity,Intent
- Android基础之Intent
- Android基础-Intent用法
- 【Android基础】趣谈Intent
- Android基础----Intent
- Android基础-Intent flag
- 基础-3 ANDROID Intent
- react-native laoding native image for android 加载静态图片
- 如何编译包含cocoapods的项目
- Opengl的坐标系统
- 设计模式之桥接模式
- 深入分析JavaWeb Item13 -- jsp指令详解
- Intent android基础二
- 从问题域出发认识Hadoop生态系统
- 用shell批量修改文件名
- java学习总结之多线程
- Android bluetooth介绍(一):基本概念及硬件接口
- zookeeper的Will not attempt to authenticate using SASL (无法定位登录配置)
- leetcode -- Reverse Words in a String -- 太简单,忽略
- Median of Two Sorted Arrays
- 【转】opencv+vs2013+cmake生成源码