惯用Android应用程序中的Intent动作
常用Android应用程序中的Intent动作
1、常用Android应用程序中的Intent动作和Uri组合及其说明
动作 | Uri | 说明 |
Intent.ACTION_VIEW |
geo:latitude,longtitude |
打开地图应用程序并显示指定的纬度和经度 |
Intent.ACTION_VIEW |
geo:0,0?q=street+address |
打开地图应用程序并显示指定的地址 |
Intent.ACTION_CALL |
tel:phone_number |
打开电话应用程序并拨打指定的电话号码 |
Intent.ACTION_DIAL |
tel:phone_number |
打开电话应用程序并拨下指定电话(但不打出) |
Intent.ACTION_DIAL |
voicemail: |
打开电话应用程序并拨下语音信箱号码(但不打出) |
Intent.ACTION_VIEW |
http://web_address |
打开浏览器应用程序并显示指定的URL |
Intent.ACTION_VIEW |
https://web_address |
打开浏览器应用程序并显示指定的URL |
Intent.ACTION_WEB_SEARCH |
plain_text |
打开浏览器应用程序并使用Google搜索引擎 |