{"id":799,"date":"2015-06-19T14:09:08","date_gmt":"2015-06-19T06:09:08","guid":{"rendered":"https:\/\/ai.zhousir.top\/?p=799"},"modified":"2026-08-18T12:58:41","modified_gmt":"2026-08-18T04:58:41","slug":"android%e4%b8%ad%e7%9a%84intent%e8%af%a6%e7%bb%86%e8%ae%b2%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/ai.zhousir.top\/?p=799","title":{"rendered":"Android\u4e2d\u7684Intent\u8be6\u7ec6\u8bb2\u89e3"},"content":{"rendered":"<section id=\"wenyan\" style=\"font-family: system-ui, 'Apple Color Emoji', 'Segoe UI', 'Segoe UI Symbol', 'Noto Sans', Roboto, sans-serif; line-height: 1.75; font-size: 16px; color: #000000; caret-color: #000000;\" data-provider=\"WenYan\">\n<blockquote style=\"margin: 20px 0px; display: block; font-size: 0.9em; overflow: auto; border-left: 3px solid #ef7060; color: #6a737d; padding: 10px 10px 10px 20px; background: #fff9f9;\">\n<p style=\"margin: 1em 0px;\">Android \u5e94\u7528\u4e3b\u8981\u7531\u56db\u79cd\u7ec4\u4ef6\u6784\u6210\uff08\u53ef\u53c2\u8003\u300cAndroid \u5e94\u7528\u7684\u6784\u6210\u300d\uff09\u3002\u7ec4\u4ef6\u5f7c\u6b64\u72ec\u7acb\uff0c\u8981\u4e92\u76f8\u8c03\u7528\u3001\u534f\u8c03\u5de5\u4f5c\uff0c\u901a\u8baf\u4e3b\u8981\u9760 <strong>Intent<\/strong> \u534f\u52a9\u5b8c\u6210\u3002<\/p>\n<\/blockquote>\n<p><!--more--><\/p>\n<hr>\n<h2 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #ef7060; display: flex;\"><span style=\"display: inline-block; font-weight: bold; background: #ef7060; color: #ffffff; padding: 3px 10px 1px; border-top-right-radius: 3px; border-top-left-radius: 3px; margin-right: 3px;\">\u4e00\u3001Intent \u5728\u7ec4\u4ef6\u4e4b\u95f4\u5f53\u5a92\u4eba<\/span><\/h2>\n<p style=\"margin: 1em 0px;\"><a href=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2015\/06\/QQ\u255c\u256a\u2550\u255d20150619155924.png\" rel=\"fancybox\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone  wp-image-804\" src=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2015\/06\/QQ\u255c\u256a\u2550\u255d20150619155924.png\" alt=\"QQ\u255c\u256a\u2550\u255d20150619155924\" width=\"534\" height=\"349\" \/><\/a><\/p>\n<p style=\"margin: 1em 0px;\"><strong>Intent \u8d1f\u8d23\u63cf\u8ff0\u4e00\u6b21\u64cd\u4f5c\u7684\u52a8\u4f5c\u3001\u6d89\u53ca\u7684\u6570\u636e\u3001\u9644\u52a0\u6570\u636e<\/strong>\u3002\u7cfb\u7edf\u6839\u636e\u8fd9\u6bb5\u63cf\u8ff0\u627e\u5230\u5bf9\u5e94\u7ec4\u4ef6\uff0c\u628a Intent \u4f20\u8fc7\u53bb\u5e76\u5b8c\u6210\u8c03\u7528\u3002\u5b83\u662f\u8c03\u7528\u8005\u4e0e\u88ab\u8c03\u7528\u8005\u4e4b\u95f4\u7684\u4e2d\u4ecb\uff0c\u7528\u6765\u89e3\u8026\u3002<\/p>\n<p style=\"margin: 1em 0px;\">\u4f8b\u5982\u8054\u7cfb\u4eba\u5e94\u7528\uff1a\u5217\u8868\u5c4f\uff08listActivity\uff09\u70b9\u67d0\u4e2a\u8054\u7cfb\u4eba\u540e\u8981\u8fdb\u8be6\u60c5\u5c4f\uff08detailActivity\uff09\u3002listActivity \u6784\u9020\u4e00\u4e2a Intent\uff0c\u544a\u8bc9\u7cfb\u7edf\u8981\u505a\u300c\u67e5\u770b\u300d\uff0c\u5bf9\u8c61\u662f\u300c\u67d0\u8054\u7cfb\u4eba\u300d\uff0c\u518d <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">startActivity(Intent intent)<\/code>\u3002\u7cfb\u7edf\u5230 Manifest \u91cc\u627e\u80fd\u6ee1\u8db3\u8be5 Intent \u7684 Activity\uff0c\u542f\u52a8 detailActivity\uff0c\u5e76\u628a Intent \u4f20\u8fdb\u53bb\uff0c\u540e\u8005\u6309\u63cf\u8ff0\u6267\u884c\u3002<\/p>\n<hr>\n<h2 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #ef7060; display: flex;\"><span style=\"display: inline-block; font-weight: bold; background: #ef7060; color: #ffffff; padding: 3px 10px 1px; border-top-right-radius: 3px; border-top-left-radius: 3px; margin-right: 3px;\">\u4e8c\u3001\u62bd\u8c61\u63cf\u8ff0\u8981\u63cf\u8ff0\u4ec0\u4e48<\/span><\/h2>\n<p style=\"margin: 1em 0px;\">\u6587\u6863\u91cc Intent \u7684\u5b9a\u4e49\u662f<strong>\u6267\u884c\u67d0\u64cd\u4f5c\u7684\u4e00\u4e2a\u62bd\u8c61\u63cf\u8ff0<\/strong>\u3002\u5148\u770b\u5b83\u5230\u5e95\u63cf\u8ff0\u4e86\u4ec0\u4e48\u3002<\/p>\n<p style=\"margin: 1em 0px;\">\u9996\u5148\u662f<strong>\u8981\u6267\u884c\u7684\u52a8\u4f5c\uff08action\uff09<\/strong>\uff0c\u5982 VIEW_ACTION\uff08\u67e5\u770b\uff09\u3001EDIT_ACTION\uff08\u4fee\u6539\uff09\u3002Android \u5b9a\u4e49\u4e86\u4e00\u5957\u6807\u51c6\u52a8\u4f5c\uff1a<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 10px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; margin: 0.5em; padding: 3px 5px; overflow-x: auto; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">MAIN_ACTION\nVIEW_ACTION\nEDIT_ACTION\nPICK_ACTION\nGET_CONTENT_ACTION\nDIAL_ACTION\nCALL_ACTION\nSENDTO_ACTION\nANSWER_ACTION\nINSERT_ACTION\nDELETE_ACTION\nRUN_ACTION\nLOGIN_ACTION\nCLEAR_CREDENTIALS_ACTION\nSYNC_ACTION\nPICK_ACTIVITY_ACTION\nWEB_SEARCH_ACTION<\/code><\/pre>\n<p style=\"margin: 1em 0px;\">\u4e5f\u53ef\u4ee5\u6309\u5e94\u7528\u9700\u8981<strong>\u81ea\u5b9a\u4e49\u52a8\u4f5c<\/strong>\uff0c\u5e76\u63d0\u4f9b\u76f8\u5e94 Activity \u6765\u5904\u7406\u3002<\/p>\n<p style=\"margin: 1em 0px;\">\u5176\u6b21\u662f<strong>\u52a8\u4f5c\u8981\u64cd\u4f5c\u7684\u6570\u636e\uff08data\uff09<\/strong>\uff0c\u7528\u6307\u5411\u6570\u636e\u7684 URI \u8868\u793a\u3002\u8054\u7cfb\u4eba\u91cc\u67d0\u4e2a\u8054\u7cfb\u4eba\u53ef\u80fd\u662f <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">content:\/\/contacts\/1<\/code>\u3002\u8fd9\u7c7b URI \u7531 ContentURI \u63cf\u8ff0\uff0c\u8be6\u89c1 android.net.ContentURI \u6587\u6863\u3002<\/p>\n<p style=\"margin: 1em 0px;\">\u4ee5\u8054\u7cfb\u4eba\u4e3a\u4f8b\uff0c\u82e5\u5e72 action \/ data \u5bf9\u53ca\u5176\u610f\u56fe\uff1a<\/p>\n<ul style=\"padding-left: 1rem; margin-left: 1rem; font-size: 0.9rem; list-style-type: disc;\">\n<li>\n<section>VIEW_ACTION content:\/\/contacts\/1 \u2014\u2014 \u663e\u793a\u6807\u8bc6\u4e3a 1 \u7684\u8054\u7cfb\u4eba\u8be6\u60c5<\/section>\n<\/li>\n<li>\n<section>EDIT_ACTION content:\/\/contacts\/1 \u2014\u2014 \u7f16\u8f91\u6807\u8bc6\u4e3a 1 \u7684\u8054\u7cfb\u4eba<\/section>\n<\/li>\n<li>\n<section>VIEW_ACTION content:\/\/contacts\/ \u2014\u2014 \u663e\u793a\u5168\u90e8\u8054\u7cfb\u4eba\u5217\u8868<\/section>\n<\/li>\n<li>\n<section>PICK_ACTION content:\/\/contacts\/ \u2014\u2014 \u663e\u793a\u5217\u8868\u5e76\u5141\u8bb8\u9009\u62e9\u4e00\u4e2a\uff0c\u628a\u7ed3\u679c\u8fd4\u56de\u7ed9\u7236 Activity\uff08\u90ae\u4ef6\u5ba2\u6237\u7aef\u53ef\u7528\u6765\u8bf7\u7528\u6237\u9009\u8054\u7cfb\u4eba\uff09<\/section>\n<\/li>\n<\/ul>\n<p style=\"margin: 1em 0px;\">\u9664 action\u3001data \u5916\u8fd8\u6709\u9644\u52a0\u5c5e\u6027\uff1a<\/p>\n<ul style=\"padding-left: 1rem; margin-left: 1rem; font-size: 0.9rem; list-style-type: disc;\">\n<li>\n<section><strong>category\uff08\u7c7b\u522b\uff09<\/strong>\uff1a\u52a8\u4f5c\u7684\u9644\u52a0\u4fe1\u606f\u3002LAUNCHER_CATEGORY \u8868\u793a\u63a5\u6536\u8005\u5e94\u4f5c\u4e3a\u9876\u7ea7\u5e94\u7528\u51fa\u73b0\u5728 Launcher\uff1bALTERNATIVE_CATEGORY \u8868\u793a\u8fd9\u662f\u540c\u4e00\u5757\u6570\u636e\u4e0a\u4e00\u7cfb\u5217\u53ef\u9009\u52a8\u4f5c\u4e4b\u4e00\u3002<\/section>\n<\/li>\n<li>\n<section><strong>type\uff08\u6570\u636e\u7c7b\u578b\uff09<\/strong>\uff1a\u663e\u5f0f\u6307\u5b9a MIME\u3002\u4e00\u822c\u80fd\u4ece data \u63a8\u65ad\uff0c\u8bbe\u7f6e\u540e\u5219\u5f3a\u5236\u7528\u6307\u5b9a\u7c7b\u578b\u3002<\/section>\n<\/li>\n<li>\n<section><strong>component\uff08\u7ec4\u4ef6\uff09<\/strong>\uff1a\u76ee\u6807\u7ec4\u4ef6\u7c7b\u540d\u3002\u901a\u5e38\u7cfb\u7edf\u6309 action\u3001data\/type\u3001category \u67e5\u627e\uff1b\u4e00\u65e6\u6307\u5b9a component\uff0c\u5c31\u76f4\u63a5\u7528\u5b83\uff0c\u4e0d\u518d\u67e5\u627e\u3002\u6307\u5b9a\u540e\u5176\u5b83\u5c5e\u6027\u90fd\u53ef\u9009\u3002<\/section>\n<\/li>\n<li>\n<section><strong>extras\uff08\u9644\u52a0\u4fe1\u606f\uff09<\/strong>\uff1a\u5176\u5b83\u9644\u52a0\u4fe1\u606f\u7684\u96c6\u5408\u3002\u4f8b\u5982\u300c\u53d1\u9001\u7535\u5b50\u90ae\u4ef6\u300d\u53ef\u4ee5\u628a\u6807\u9898\u3001\u6b63\u6587\u653e\u8fdb extras \u4f20\u7ed9\u53d1\u9001\u7ec4\u4ef6\u3002<\/section>\n<\/li>\n<\/ul>\n<p style=\"margin: 1em 0px;\">\u603b\u4e4b\uff0c<strong>action\u3001data\/type\u3001category \u548c extras \u4e00\u8d77\u5f62\u6210\u4e00\u79cd\u8bed\u8a00<\/strong>\uff0c\u8ba9\u7cfb\u7edf\u7406\u89e3\u300c\u67e5\u770b\u67d0\u8054\u7cfb\u4eba\u8be6\u60c5\u300d\u8fd9\u7c7b\u77ed\u8bed\u3002\u65b0\u5e94\u7528\u53ef\u4ee5\u52a0\u5165\u65b0\u7684 action \/ data \/ category \u6269\u5c55\u8fd9\u79cd\u8bed\u8a00\uff0c\u4e5f\u53ef\u4ee5\u63d0\u4f9b\u81ea\u5df1\u7684 Activity \u5904\u7406\u5df2\u6709\u77ed\u8bed\uff0c\u4ece\u800c\u6539\u53d8\u884c\u4e3a\u3002<\/p>\n<table style=\"border-collapse: collapse; margin: 1.4em auto; max-width: 100%; table-layout: fixed; text-align: left; overflow: auto; display: table; overflow-wrap: break-word; word-break: break-all;\" width=\"817\">\n<thead>\n<tr>\n<th style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top; font-weight: bold; background-color: #fff9f9; color: #ef7060;\">\u5c5e\u6027<\/th>\n<th style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top; font-weight: bold; background-color: #fff9f9; color: #ef7060;\">\u63cf\u8ff0\u4ec0\u4e48<\/th>\n<th style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top; font-weight: bold; background-color: #fff9f9; color: #ef7060;\">\u4f8b\u5b50<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">action<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u8981\u6267\u884c\u7684\u52a8\u4f5c<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">VIEW_ACTION \/ EDIT_ACTION \/ \u81ea\u5b9a\u4e49<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">data<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u64cd\u4f5c\u5bf9\u8c61\u7684 URI<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">content:\/\/contacts\/1<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">type<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u663e\u5f0f MIME<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u4e0d\u8bbe\u5219\u4ece data \u63a8\u65ad<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">category<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u52a8\u4f5c\u9644\u52a0\u5206\u7c7b<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">LAUNCHER_CATEGORY<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">component<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u76f4\u63a5\u6307\u5b9a\u76ee\u6807\u7c7b<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">setClass \/ setComponent<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">extras<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u9644\u52a0\u952e\u503c<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u90ae\u4ef6\u6807\u9898\u3001\u6b63\u6587<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr>\n<h2 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #ef7060; display: flex;\"><span style=\"display: inline-block; font-weight: bold; background: #ef7060; color: #ffffff; padding: 3px 10px 1px; border-top-right-radius: 3px; border-top-left-radius: 3px; margin-right: 3px;\">\u4e09\u3001Android \u5982\u4f55\u89e3\u6790 Intent<\/span><\/h2>\n<p style=\"margin: 1em 0px;\">\u5e94\u7528\u91cc\u53ef\u4ee5\u7528\u4e24\u79cd\u5f62\u5f0f\uff1a<\/p>\n<ul style=\"padding-left: 1rem; margin-left: 1rem; font-size: 0.9rem; list-style-type: disc;\">\n<li>\n<section><strong>\u76f4\u63a5 Intent<\/strong>\uff1a\u6307\u5b9a\u4e86 component\uff08<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">setComponent(ComponentName)<\/code> \u6216 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">setClass(Context, Class)<\/code>\uff09\u3002\u76ee\u6807\u7c7b\u660e\u786e\uff0c\u7cfb\u7edf\u4e0d\u7528\u89e3\u6790\u3002<\/section>\n<\/li>\n<li>\n<section><strong>\u95f4\u63a5 Intent<\/strong>\uff1a\u6ca1\u6709\u6307\u5b9a component\u3002\u5fc5\u987b\u5305\u542b\u8db3\u591f\u4fe1\u606f\uff0c\u7cfb\u7edf\u624d\u80fd\u5728\u6240\u6709\u53ef\u7528\u7ec4\u4ef6\u91cc\u627e\u51fa\u5339\u914d\u8005\u3002<\/section>\n<\/li>\n<\/ul>\n<p style=\"margin: 1em 0px;\">Android \u8981\u89e3\u6790\u7684\u662f\u95f4\u63a5 Intent\uff0c\u628a\u5b83\u6620\u5c04\u5230\u80fd\u5904\u7406\u5b83\u7684 Activity\u3001IntentReceiver \u6216 Service\u3002\u89e3\u6790\u4e3b\u8981\u9760 Manifest \u91cc\u6ce8\u518c\u7684 IntentFilter\uff1a\u7528 action\u3001type\u3001category \u5224\u65ad\u3002<\/p>\n<ul style=\"padding-left: 1rem; margin-left: 1rem; font-size: 0.9rem; list-style-type: disc;\">\n<li>\n<section>Intent \u6307\u660e\u4e86 action\uff0c\u5219\u76ee\u6807 Filter \u7684 action \u5217\u8868\u5fc5\u987b\u5305\u542b\u5b83\uff0c\u5426\u5219\u4e0d\u5339\u914d\u3002<\/section>\n<\/li>\n<li>\n<section>Intent \u6ca1\u63d0\u4f9b type\uff0c\u7cfb\u7edf\u4ece data \u5f97\u5230\u6570\u636e\u7c7b\u578b\u3002\u548c action \u4e00\u6837\uff0c\u76ee\u6807\u6570\u636e\u7c7b\u578b\u5217\u8868\u5fc5\u987b\u5305\u542b\u8be5 type\u3002<\/section>\n<\/li>\n<li>\n<section>data \u4e0d\u662f content: \u7c7b\u578b\u7684 URI\uff0c\u4e14 Intent \u4e5f\u6ca1\u660e\u786e type\uff0c\u5219\u6309 scheme\uff08\u5982 http:\u3001mailto:\uff09\u5339\u914d\uff0cscheme \u5fc5\u987b\u51fa\u73b0\u5728\u76ee\u6807\u5217\u8868\u91cc\u3002<\/section>\n<\/li>\n<li>\n<section>Intent \u6307\u5b9a\u4e86\u4e00\u4e2a\u6216\u591a\u4e2a category\uff0c\u8fd9\u4e9b\u7c7b\u522b\u5fc5\u987b\u5168\u90e8\u51fa\u73b0\u5728\u7ec4\u4ef6\u7684\u7c7b\u522b\u5217\u8868\u4e2d\u3002\u4f8b\u5982\u540c\u65f6\u6709 LAUNCHER_CATEGORY \u548c ALTERNATIVE_CATEGORY\uff0c\u76ee\u6807\u81f3\u5c11\u8981\u5305\u542b\u8fd9\u4e24\u4e2a\u3002<\/section>\n<\/li>\n<\/ul>\n<hr>\n<h2 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #ef7060; display: flex;\"><span style=\"display: inline-block; font-weight: bold; background: #ef7060; color: #ffffff; padding: 3px 10px 1px; border-top-right-radius: 3px; border-top-left-radius: 3px; margin-right: 3px;\">\u56db\u3001\u4fbf\u7b3a\u4f8b\u5b50\u5728\u505a\u4ec0\u4e48<\/span><\/h2>\n<p style=\"margin: 1em 0px;\">Android SDK \u91cc\u7684\u4fbf\u7b3a\u4f8b\u5b50\u53ef\u4ee5\u5bf9\u7167\uff1a\u6d4f\u89c8\u4fbf\u7b3a\u5217\u8868\u3001\u67e5\u770b\u6bcf\u4e00\u6761\u7684\u8be6\u7ec6\u4fe1\u606f\u2014\u2014\u5217\u8868\u5230\u8be6\u60c5\uff0c\u6b63\u662f\u7528 Intent \u628a\u300c\u67e5\u770b\u67d0\u6761\u6570\u636e\u300d\u8fd9\u53e5\u8bdd\u4ea4\u7ed9\u7cfb\u7edf\u53bb\u627e\u5bf9\u5e94 Activity\u3002<\/p>\n<blockquote style=\"margin: 20px 0px; display: block; font-size: 0.9em; overflow: auto; border-left: 3px solid #ef7060; color: #6a737d; padding: 10px 10px 10px 20px; background: #fff9f9;\">\n<p style=\"margin: 1em 0px;\"><strong>\u4e00\u53e5\u8bdd\u603b\u7ed3\uff1aIntent \u7528 action + data\/type + category + extras \u63cf\u8ff0\u4e00\u6b21\u64cd\u4f5c\uff1b\u6307\u5b9a\u4e86 component \u5c31\u662f\u76f4\u63a5\u8df3\u8f6c\uff0c\u6ca1\u6307\u5b9a\u5c31\u9760 Manifest \u91cc\u7684 IntentFilter \u505a\u5339\u914d\u3002<\/strong><\/p>\n<\/blockquote>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>Android \u5e94\u7528\u4e3b\u8981\u7531\u56db\u79cd\u7ec4\u4ef6\u6784\u6210\uff08\u53ef\u53c2\u8003\u300cAndroid \u5e94\u7528\u7684\u6784\u6210\u300d\uff09\u3002\u7ec4\u4ef6\u5f7c\u6b64\u72ec\u7acb\uff0c\u8981\u4e92\u76f8\u8c03\u7528\u3001\u534f\u8c03 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[195],"_links":{"self":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/799"}],"collection":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=799"}],"version-history":[{"count":3,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/799\/revisions"}],"predecessor-version":[{"id":805,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/799\/revisions\/805"}],"wp:attachment":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=799"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=799"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=799"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}