![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java
fanweiwei
.NET 软件开发,司职 项目经理
展开
-
Intent的几种用法
<br /> <br />显示网页:<br />Uri uri = Uri.parse(“http://www.google.com”);<br />Intent it = new Intent(Intent.ACTION_VIEW,uri);<br />startActivity(it);<br />显示地图:<br />Uri uri = Uri.parse(“geo:38.899533,-77.036476″);<br />Intent it = new Intent(Intent.Action_VI转载 2010-06-26 09:55:00 · 1373 阅读 · 1 评论 -
startActivity 与startActivityForResult区别
相同点: Activity之间相互跳转通过不同点: 1. startActivityForResult 在关闭子Activity后父Activity可以接受到子Activity返回值 2. startActivity (the activity is not launched as a sub-activity).当你的Activity嵌套在另一个Acti原创 2010-05-26 17:04:00 · 3051 阅读 · 0 评论