andorid(安卓)intent显式与隐式启动Activity实例

上传者: ikaros_android | 上传时间: 2021-05-24 10:33:18 | 文件大小: 59KB | 文件类型: ZIP
用一个简单的小程序简述了如何用INTENT隐式和显式启动ACTIVITY,注意AndroidManifest.xml文件的修改! intent显式启动还有很多常用动作,实例中应用了ACTION_VIEW让系统启动浏览器浏览特定网页,建议多了解其他的动作。

文件下载

资源详情

[{"title":"( 31 个子文件 59KB ) andorid(安卓)intent显式与隐式启动Activity实例","children":[{"title":"intentTest","children":[{"title":".project <span style='color:#111;'> 846B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 360B </span>","children":null,"spread":false},{"title":"proguard.cfg <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"your","children":[{"title":"packageintent","children":[{"title":"IntentTestActivity.java <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"secActivity.java <span style='color:#111;'> 734B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 877B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"drawable-ldpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 1.68KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 4.05KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.51KB </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"sec.xml <span style='color:#111;'> 856B </span>","children":null,"spread":false},{"title":"main.xml <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 186B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 208B </span>","children":null,"spread":false}],"spread":true},{"title":"assets","children":null,"spread":false},{"title":"gen","children":[{"title":"your","children":[{"title":"packageintent","children":[{"title":"R.java <span style='color:#111;'> 1013B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":".classpath <span style='color:#111;'> 364B </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"resources.ap_ <span style='color:#111;'> 11.67KB </span>","children":null,"spread":false},{"title":"classes","children":[{"title":"your","children":[{"title":"packageintent","children":[{"title":"R$layout.class <span style='color:#111;'> 421B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 407B </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 340B </span>","children":null,"spread":false},{"title":"secActivity.class <span style='color:#111;'> 1018B </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 518B </span>","children":null,"spread":false},{"title":"IntentTestActivity.class <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"IntentTestActivity$1.class <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 531B </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 427B </span>","children":null,"spread":false},{"title":"secActivity$1.class <span style='color:#111;'> 1.00KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true},{"title":"res","children":[{"title":"drawable-ldpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.87KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"intentTest.apk <span style='color:#111;'> 15.95KB </span>","children":null,"spread":false},{"title":"classes.dex <span style='color:#111;'> 4.09KB </span>","children":null,"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

  • wang_wwang :
    作为参考案例还是有用的!
    2017-09-18
  • wang_wwang :
    作为参考案例还是有用的!
    2017-09-18
  • u012631204 :
    帮我很大的忙。谢谢楼主!!!
    2014-11-11
  • u012631204 :
    帮我很大的忙。谢谢楼主!!!
    2014-11-11
  • dongpingtianlixing :
    初次学习,借鉴一下
    2013-05-02
  • dongpingtianlixing :
    初次学习,借鉴一下
    2013-05-02
  • bzhao :
    我也明白了!
    2013-01-16
  • bzhao :
    我也明白了!
    2013-01-16
  • dengyiqian :
    看了很久,还是木有看明白~~~~!
    2013-01-09
  • dengyiqian :
    看了很久,还是木有看明白~~~~!
    2013-01-09

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明