{"id":799,"date":"2015-06-19T14:09:08","date_gmt":"2015-06-19T06:09:08","guid":{"rendered":"https:\/\/ai.zhousir.top\/?p=799"},"modified":"2015-06-19T16:03:01","modified_gmt":"2015-06-19T08:03:01","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":"<p>\u5728\u4e00\u4e2aAndroid\u5e94\u7528\u4e2d\uff0c\u4e3b\u8981\u662f\u7531\u56db\u79cd\u7ec4\u4ef6\u7ec4\u6210\u7684\uff0c\u8fd9\u56db\u79cd\u7ec4\u4ef6\u53ef\u53c2\u8003\u201cAndroid\u5e94\u7528\u7684\u6784\u6210\u201d\u3002<\/p>\n<p>\u800c\u8fd9\u56db\u79cd\u7ec4\u4ef6\u662f\u72ec\u7acb\u7684\uff0c\u5b83\u4eec\u4e4b\u95f4\u53ef\u4ee5\u4e92\u76f8\u8c03\u7528\uff0c\u534f\u8c03\u5de5\u4f5c\uff0c\u6700\u7ec8\u7ec4\u6210\u4e00\u4e2a\u771f\u6b63\u7684Android\u5e94\u7528\u3002<\/p>\n<p>\u5728\u8fd9\u4e9b\u7ec4\u4ef6\u4e4b\u95f4\u7684\u901a\u8baf\u4e2d\uff0c\u4e3b\u8981\u662f\u7531Intent\u534f\u52a9\u5b8c\u6210\u7684\u3002<\/p>\n<p><!--more--><\/p>\n<p><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><span style=\"color: #993300;\"><strong>Intent\u8d1f\u8d23\u5bf9\u5e94\u7528\u4e2d\u4e00\u6b21\u64cd\u4f5c\u7684\u52a8\u4f5c\u3001\u52a8\u4f5c\u6d89\u53ca\u6570\u636e\u3001\u9644\u52a0\u6570\u636e\u8fdb\u884c\u63cf\u8ff0\uff0cAndroid\u5219\u6839\u636e\u6b64Intent\u7684\u63cf\u8ff0\uff0c\u8d1f\u8d23\u627e\u5230\u5bf9\u5e94\u7684\u7ec4\u4ef6\uff0c\u5c06 Intent\u4f20\u9012\u7ed9\u8c03\u7528\u7684\u7ec4\u4ef6\uff0c\u5e76\u5b8c\u6210\u7ec4\u4ef6\u7684\u8c03\u7528\u3002<\/strong><\/span><br \/>\n\u56e0\u6b64\uff0cIntent\u5728\u8fd9\u91cc\u8d77\u7740\u4e00\u4e2a\u5a92\u4f53\u4e2d\u4ecb\u7684\u4f5c\u7528\uff0c\u4e13\u95e8\u63d0\u4f9b\u7ec4\u4ef6\u4e92\u76f8\u8c03\u7528\u7684\u76f8\u5173\u4fe1\u606f\uff0c\u5b9e\u73b0\u8c03\u7528\u8005\u4e0e\u88ab\u8c03\u7528\u8005\u4e4b\u95f4\u7684\u89e3\u8026\u3002<\/p>\n<p>\u4f8b\u5982\uff0c\u5728\u4e00\u4e2a\u8054\u7cfb\u4eba\u7ef4\u62a4\u7684\u5e94\u7528\u4e2d\uff0c\u5f53\u6211\u4eec\u5728\u4e00\u4e2a\u8054\u7cfb\u4eba\u5217\u8868\u5c4f\u5e55(\u5047\u8bbe\u5bf9\u5e94\u7684Activity\u4e3alistActivity)\u4e0a\uff0c\u70b9\u51fb\u67d0\u4e2a\u8054\u7cfb\u4eba\u540e\uff0c\u5e0c\u671b\u80fd\u591f\u8df3\u5230\u6b64\u8054\u7cfb\u4eba\u7684\u8be6\u7ec6\u4fe1\u606f\u5c4f\u5e55(\u5047\u8bbe\u5bf9\u5e94\u7684Activity\u4e3adetailActivity)<br \/>\n\u4e3a\u4e86\u5b9e\u73b0\u8fd9\u4e2a\u76ee\u7684\uff0clistActivity\u9700\u8981\u6784\u9020\u4e00\u4e2a Intent\uff0c\u8fd9\u4e2aIntent\u7528\u4e8e\u544a\u8bc9\u7cfb\u7edf\uff0c\u6211\u4eec\u8981\u505a\u201c\u67e5\u770b\u201d\u52a8\u4f5c\uff0c\u6b64\u52a8\u4f5c\u5bf9\u5e94\u7684\u67e5\u770b\u5bf9\u8c61\u662f\u201c\u67d0\u8054\u7cfb\u4eba\u201d\uff0c\u7136\u540e\u8c03\u7528startActivity (Intent intent)\uff0c<br \/>\n\u5c06\u6784\u9020\u7684Intent\u4f20\u5165\uff0c\u7cfb\u7edf\u4f1a\u6839\u636e\u6b64Intent\u4e2d\u7684\u63cf\u8ff0\uff0c\u5230ManiFest\u4e2d\u627e\u5230\u6ee1\u8db3\u6b64Intent\u8981\u6c42\u7684Activity\uff0c\u7cfb\u7edf\u4f1a\u8c03\u7528\u627e\u5230\u7684 Activity\uff0c\u5373\u4e3adetailActivity\uff0c\u6700\u7ec8\u4f20\u5165Intent\uff0cdetailActivity\u5219\u4f1a\u6839\u636e\u6b64Intent\u4e2d\u7684\u63cf\u8ff0\uff0c\u6267\u884c\u76f8\u5e94\u7684\u64cd\u4f5c\u3002<\/p>\n<p><strong>\u4e00\u3001\u62bd\u8c61\u63cf\u8ff0\u8981\u63cf\u8ff0\u4ec0\u4e48<\/strong><br \/>\n<strong>\u5728Android\u53c2\u8003\u6587\u6863\u4e2d\uff0c\u5bf9Intent\u7684\u5b9a\u4e49\u662f<span style=\"color: #993300;\">\u6267\u884c\u67d0\u64cd\u4f5c\u7684\u4e00\u4e2a\u62bd\u8c61\u63cf\u8ff0<\/span><\/strong>(\u786e\u5b9e\u5f88\u62bd\u8c61)\u3002\u6211\u4eec\u5148\u6765\u770b\u770b\u8fd9\u91cc\u7684\u62bd\u8c61\u63cf\u8ff0\uff0c\u5230\u5e95\u63cf\u8ff0\u4e86\u4ec0\u4e48\u3002<br \/>\n\u9996\u5148\uff0c\u662f\u8981<strong><span style=\"color: #993300;\">\u6267\u884c\u7684\u52a8\u4f5c(action)<\/span><\/strong>\u7684\u4e00\u4e2a\u7b80\u8981\u63cf\u8ff0\uff0c\u5982VIEW_ACTION(\u67e5\u770b)\u3001EDIT_ACTION(\u4fee\u6539)\u7b49\uff0cAndroid\u4e3a\u6211\u4eec\u5b9a\u4e49\u4e86\u4e00\u5957\u6807\u51c6\u52a8\u4f5c\uff1a<\/p>\n<p>[java]<br \/>\nMAIN_ACTION<br \/>\nVIEW_ACTION<br \/>\nEDIT_ACTION<br \/>\nPICK_ACTION<br \/>\nGET_CONTENT_ACTION<br \/>\nDIAL_ACTION<br \/>\nCALL_ACTION<br \/>\nSENDTO_ACTION<br \/>\nANSWER_ACTION<br \/>\nINSERT_ACTION<br \/>\nDELETE_ACTION<br \/>\nRUN_ACTION<br \/>\nLOGIN_ACTION<br \/>\nCLEAR_CREDENTIALS_ACTION<br \/>\nSYNC_ACTION<br \/>\nPICK_ACTIVITY_ACTION<br \/>\nWEB_SEARCH_ACTION<br \/>\n[\/java]<\/p>\n<p>\u6b64\u5916\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u6839\u636e\u5e94\u7528\u7684\u9700\u8981\uff0c\u5b9a\u4e49\u6211\u4eec<span style=\"color: #993300;\">\u81ea\u5df1\u7684\u52a8\u4f5c<\/span>\uff0c\u5e76\u53ef\u5b9a\u4e49\u76f8\u5e94\u7684Activity\u6765\u5904\u7406\u6211\u4eec\u7684\u81ea\u5b9a\u4e49\u52a8\u4f5c\u3002<\/p>\n<p>\u5176\u6b21\uff0c\u662f<span style=\"color: #993300;\"><strong>\u6267\u884c\u52a8\u4f5c\u8981\u64cd\u4f5c\u7684\u6570\u636e\uff08data\uff09<\/strong><\/span>\uff0cAndroid\u4e2d\u91c7\u7528\u6307\u5411\u6570\u636e\u7684\u4e00\u4e2aURI\u6765\u8868\u793a\uff0c\u5982\u5728\u8054\u7cfb\u4eba\u5e94\u7528\u4e2d\uff0c\u4e00\u4e2a\u6307\u5411\u67d0\u8054\u7cfb\u4eba\u7684URI\u53ef\u80fd\u4e3a\uff1acontent:\/\/contacts\/1\u3002<br \/>\n\u8fd9\u79cdURI\u8868\u793a\uff0c\u901a\u8fc7 ContentURI\u8fd9\u4e2a\u7c7b\u6765\u63cf\u8ff0\uff0c\u5177\u4f53\u53ef\u4ee5\u53c2\u8003android.net.ContentURI\u7c7b\u7684\u6587\u6863\u3002<\/p>\n<p>\u4ee5\u8054\u7cfb\u4eba\u5e94\u7528\u4e3a\u4f8b\uff0c\u4ee5\u4e0b\u662f\u4e00\u4e9baction \/ data\u5bf9\uff0c\u53ca\u5176\u5b83\u4eec\u8981\u8868\u8fbe\u7684\u610f\u56fe\uff1a<br \/>\nVIEW_ACTION content:\/\/contacts\/1&#8211; \u663e\u793a\u6807\u8bc6\u7b26\u4e3a&#8221;1&#8243;\u7684\u8054\u7cfb\u4eba\u7684\u8be6\u7ec6\u4fe1\u606f<br \/>\nEDIT_ACTION content:\/\/contacts\/1&#8211; \u7f16\u8f91\u6807\u8bc6\u7b26\u4e3a&#8221;1&#8243;\u7684\u8054\u7cfb\u4eba\u7684\u8be6\u7ec6\u4fe1\u606f<br \/>\nVIEW_ACTION content:\/\/contacts\/&#8211; \u663e\u793a\u6240\u6709\u8054\u7cfb\u4eba\u7684\u5217\u8868<br \/>\nPICK_ACTION content:\/\/contacts\/&#8211; \u663e\u793a\u6240\u6709\u8054\u7cfb\u4eba\u7684\u5217\u8868\uff0c\u5e76\u4e14\u5141\u8bb8\u7528\u6237\u5728\u5217\u8868\u4e2d\u9009\u62e9\u4e00\u4e2a\u8054\u7cfb\u4eba\uff0c\u7136\u540e\u628a\u8fd9\u4e2a\u8054\u7cfb\u4eba\u8fd4\u56de\u7ed9\u7236activity\u3002\u4f8b\u5982\uff1a\u7535\u5b50\u90ae\u4ef6\u5ba2\u6237\u7aef\u53ef\u4ee5\u4f7f\u7528\u8fd9\u4e2aIntent\uff0c\u8981\u6c42\u7528\u6237\u5728\u8054\u7cfb\u4eba\u5217\u8868\u4e2d\u9009\u62e9\u4e00\u4e2a\u8054\u7cfb\u4eba<\/p>\n<p>\u53e6\u5916\uff0c\u9664\u4e86action\u548cdata\u8fd9\u4e24\u4e2a\u91cd\u8981\u5c5e\u6027\u5916\uff0c\u8fd8\u6709\u4e00\u4e9b\u9644\u52a0\u5c5e\u6027\uff1a<\/p>\n<p><strong><span style=\"color: #993300;\">category\uff08\u7c7b\u522b\uff09\uff0c\u88ab\u6267\u884c\u52a8\u4f5c\u7684\u9644\u52a0\u4fe1\u606f<\/span><\/strong>\u3002\u4f8b\u5982 LAUNCHER_CATEGORY \u8868\u793aIntent \u7684\u63a5\u53d7\u8005\u5e94\u8be5\u5728Launcher\u4e2d\u4f5c\u4e3a\u9876\u7ea7\u5e94\u7528\u51fa\u73b0\uff1b\u800cALTERNATIVE_CATEGORY\u8868\u793a\u5f53\u524d\u7684Intent\u662f\u4e00\u7cfb\u5217\u7684\u53ef\u9009\u52a8\u4f5c\u4e2d\u7684\u4e00\u4e2a\uff0c\u8fd9\u4e9b\u52a8\u4f5c\u53ef\u4ee5\u5728\u540c\u4e00\u5757\u6570\u636e\u4e0a\u6267\u884c\u3002<\/p>\n<p><strong><span style=\"color: #993300;\">type\uff08\u6570\u636e\u7c7b\u578b\uff09\uff0c\u663e\u5f0f\u6307\u5b9aIntent\u7684\u6570\u636e\u7c7b\u578b\uff08MIME\uff09<\/span><\/strong>\u3002\u4e00\u822cIntent\u7684\u6570\u636e\u7c7b\u578b\u80fd\u591f\u6839\u636e\u6570\u636e\u672c\u8eab\u8fdb\u884c\u5224\u5b9a\uff0c\u4f46\u662f\u901a\u8fc7\u8bbe\u7f6e\u8fd9\u4e2a\u5c5e\u6027\uff0c\u53ef\u4ee5\u5f3a\u5236\u91c7\u7528\u663e\u5f0f\u6307\u5b9a\u7684\u7c7b\u578b\u800c\u4e0d\u518d\u8fdb\u884c\u63a8\u5bfc\u3002<\/p>\n<p><strong><span style=\"color: #993300;\">component\uff08\u7ec4\u4ef6\uff09\uff0c\u6307\u5b9aIntent\u7684\u7684\u76ee\u6807\u7ec4\u4ef6\u7684\u7c7b\u540d\u79f0\u3002<\/span><\/strong>\u901a\u5e38 Android\u4f1a\u6839\u636eIntent \u4e2d\u5305\u542b\u7684\u5176\u5b83\u5c5e\u6027\u7684\u4fe1\u606f\uff0c\u6bd4\u5982action\u3001data\/type\u3001category\u8fdb\u884c\u67e5\u627e\uff0c\u6700\u7ec8\u627e\u5230\u4e00\u4e2a\u4e0e\u4e4b\u5339\u914d\u7684\u76ee\u6807\u7ec4\u4ef6\u3002\u4f46\u662f\uff0c\u5982\u679c component\u8fd9\u4e2a\u5c5e\u6027\u6709\u6307\u5b9a\u7684\u8bdd\uff0c\u5c06\u76f4\u63a5\u4f7f\u7528\u5b83\u6307\u5b9a\u7684\u7ec4\u4ef6\uff0c\u800c\u4e0d\u518d\u6267\u884c\u4e0a\u8ff0\u67e5\u627e\u8fc7\u7a0b\u3002\u6307\u5b9a\u4e86\u8fd9\u4e2a\u5c5e\u6027\u4ee5\u540e\uff0cIntent\u7684\u5176\u5b83\u6240\u6709\u5c5e\u6027\u90fd\u662f\u53ef\u9009\u7684\u3002<\/p>\n<p><strong><span style=\"color: #993300;\">extras\uff08\u9644\u52a0\u4fe1\u606f\uff09\uff0c\u662f\u5176\u5b83\u6240\u6709\u9644\u52a0\u4fe1\u606f\u7684\u96c6\u5408\u3002<\/span><\/strong>\u4f7f\u7528extras\u53ef\u4ee5\u4e3a\u7ec4\u4ef6\u63d0\u4f9b\u6269\u5c55\u4fe1\u606f\uff0c\u6bd4\u5982\uff0c\u5982\u679c\u8981\u6267\u884c\u201c\u53d1\u9001\u7535\u5b50\u90ae\u4ef6\u201d\u8fd9\u4e2a\u52a8\u4f5c\uff0c\u53ef\u4ee5\u5c06\u7535\u5b50\u90ae\u4ef6\u7684\u6807\u9898\u3001\u6b63\u6587\u7b49\u4fdd\u5b58\u5728extras\u91cc\uff0c\u4f20\u7ed9\u7535\u5b50\u90ae\u4ef6\u53d1\u9001\u7ec4\u4ef6\u3002<\/p>\n<p>\u603b\u4e4b\uff0c<strong>action\u3001 data\/type\u3001category\u548cextras \u4e00\u8d77\u5f62\u6210\u4e86\u4e00\u79cd\u8bed\u8a00\u3002<\/strong><br \/>\n<strong> \u8fd9\u79cd\u8bed\u8a00\u4f7f\u7cfb\u7edf\u80fd\u591f\u7406\u89e3\u8bf8\u5982\u201c\u67e5\u770b\u67d0\u8054\u7cfb\u4eba\u7684\u8be6\u7ec6\u4fe1\u606f\u201d\u4e4b\u7c7b\u7684\u77ed\u8bed\u3002<\/strong><br \/>\n\u968f\u7740\u5e94\u7528\u4e0d\u65ad\u7684\u52a0\u5165\u5230\u7cfb\u7edf\u4e2d\uff0c\u5b83\u4eec\u53ef\u4ee5\u6dfb\u52a0\u65b0\u7684action\u3001 data\/type\u3001category\u6765\u6269\u5c55\u8fd9\u79cd\u8bed\u8a00\u3002<br \/>\n\u5e94\u7528\u4e5f\u53ef\u4ee5\u63d0\u4f9b\u81ea\u5df1\u7684Activity\u6765\u5904\u7406\u5df2\u7ecf\u5b58\u5728\u7684\u8fd9\u6837\u7684\u201c\u77ed\u8bed\u201d\uff0c\u4ece\u800c\u6539\u53d8\u8fd9\u4e9b\u201c\u77ed\u8bed\u201d\u7684\u884c\u4e3a\u3002<br \/>\n<strong>\u4e8c\u3001Android\u5982\u4f55\u89e3\u6790Intent<\/strong><\/p>\n<p>\u5728\u5e94\u7528\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u4ee5\u4e24\u79cd\u5f62\u5f0f\u6765\u4f7f\u7528Intent\uff1a<br \/>\n<span style=\"color: #993300;\"><strong>\u76f4\u63a5Intent\uff1a<\/strong><\/span>\u6307\u5b9a\u4e86component\u5c5e\u6027\u7684Intent(\u8c03\u7528setComponent(ComponentName)\u6216\u8005setClass(Context, Class)\u6765\u6307\u5b9a)\u3002\u901a\u8fc7\u6307\u5b9a\u5177\u4f53\u7684\u7ec4\u4ef6\u7c7b\uff0c\u901a\u77e5\u5e94\u7528\u542f\u52a8\u5bf9\u5e94\u7684\u7ec4\u4ef6\u3002<\/p>\n<p><span style=\"color: #993300;\"><strong>\u95f4\u63a5Intent\uff1a<\/strong><\/span>\u6ca1\u6709\u6307\u5b9acomonent\u5c5e\u6027\u7684Intent\u3002\u8fd9\u4e9bIntent\u9700\u8981\u5305\u542b\u8db3\u591f\u7684\u4fe1\u606f\uff0c\u8fd9\u6837\u7cfb\u7edf\u624d\u80fd\u6839\u636e\u8fd9\u4e9b\u4fe1\u606f\uff0c\u5728\u6240\u6709\u7684\u53ef\u7528\u7ec4\u4ef6\u4e2d\uff0c\u786e\u5b9a\u6ee1\u8db3\u6b64Intent\u7684\u7ec4\u4ef6\u3002<br \/>\n\u5bf9\u4e8e\u76f4\u63a5Intent\uff0cAndroid\u4e0d\u9700\u8981\u53bb\u505a\u89e3\u6790\uff0c\u56e0\u4e3a\u76ee\u6807\u7ec4\u4ef6\u5df2\u7ecf\u5f88\u660e\u786e\uff0cAndroid\u9700\u8981\u89e3\u6790\u7684\u662f\u90a3\u4e9b\u95f4\u63a5Intent\uff0c\u901a\u8fc7\u89e3\u6790\uff0c\u5c06 Intent\u6620\u5c04\u7ed9\u53ef\u4ee5\u5904\u7406\u6b64Intent\u7684Activity\u3001IntentReceiver\u6216Service\u3002<\/p>\n<p>Intent\u89e3\u6790\u673a\u5236\u4e3b\u8981\u662f\u901a\u8fc7\u67e5\u627e\u5df2\u6ce8\u518c\u5728AndroidManifest.xml\u4e2d\u7684\u6240\u6709IntentFilter\u53ca\u5176\u4e2d\u5b9a\u4e49\u7684Intent\uff0c\u6700\u7ec8\u627e\u5230\u5339\u914d\u7684Intent\u3002\u5728\u8fd9\u4e2a\u89e3\u6790\u8fc7\u7a0b\u4e2d\uff0cAndroid\u662f\u901a\u8fc7Intent\u7684action\u3001type\u3001category\u8fd9\u4e09\u4e2a\u5c5e\u6027\u6765\u8fdb\u884c\u5224\u65ad\u7684\uff0c\u5224\u65ad\u65b9\u6cd5\u5982\u4e0b\uff1a<\/p>\n<p>\u5982\u679cIntent\u6307\u660e\u5b9a\u4e86action\uff0c\u5219\u76ee\u6807\u7ec4\u4ef6\u7684IntentFilter\u7684action\u5217\u8868\u4e2d\u5c31\u5fc5\u987b\u5305\u542b\u6709\u8fd9\u4e2aaction\uff0c\u5426\u5219\u4e0d\u80fd\u5339\u914d;<br \/>\n\u5982\u679cIntent\u6ca1\u6709\u63d0\u4f9btype\uff0c\u7cfb\u7edf\u5c06\u4ecedata\u4e2d\u5f97\u5230\u6570\u636e\u7c7b\u578b\u3002\u548caction\u4e00\u6837\uff0c\u76ee\u6807\u7ec4\u4ef6\u7684\u6570\u636e\u7c7b\u578b\u5217\u8868\u4e2d\u5fc5\u987b\u5305\u542bIntent\u7684\u6570\u636e\u7c7b\u578b\uff0c\u5426\u5219\u4e0d\u80fd\u5339\u914d\u3002<br \/>\n\u5982\u679cIntent\u4e2d\u7684\u6570\u636e\u4e0d\u662fcontent: \u7c7b\u578b\u7684URI\uff0c\u800c\u4e14Intent\u4e5f\u6ca1\u6709\u660e\u786e\u6307\u5b9a\u5b83\u7684type\uff0c\u5c06\u6839\u636eIntent\u4e2d\u6570\u636e\u7684scheme (\u6bd4\u5982 http: \u6216\u8005mailto: ) \u8fdb\u884c\u5339\u914d\u3002\u540c\u4e0a\uff0cIntent \u7684scheme\u5fc5\u987b\u51fa\u73b0\u5728\u76ee\u6807\u7ec4\u4ef6\u7684scheme\u5217\u8868\u4e2d\u3002<br \/>\n\u5982\u679cIntent\u6307\u5b9a\u4e86\u4e00\u4e2a\u6216\u591a\u4e2acategory\uff0c\u8fd9\u4e9b\u7c7b\u522b\u5fc5\u987b\u5168\u90e8\u51fa\u73b0\u5728\u7ec4\u5efa\u7684\u7c7b\u522b\u5217\u8868\u4e2d\u3002\u6bd4\u5982Intent\u4e2d\u5305\u542b\u4e86\u4e24\u4e2a\u7c7b\u522b\uff1aLAUNCHER_CATEGORY \u548c ALTERNATIVE_CATEGORY\uff0c\u89e3\u6790\u5f97\u5230\u7684\u76ee\u6807\u7ec4\u4ef6\u5fc5\u987b\u81f3\u5c11\u5305\u542b\u8fd9\u4e24\u4e2a\u7c7b\u522b\u3002<\/p>\n<p><strong>\u4e09\u3001\u5e94\u7528\u4f8b\u5b50<\/strong><\/p>\n<p>\u4ee5Android SDK\u4e2d\u7684\u4fbf\u7b3a\u4f8b\u5b50\u6765\u8bf4\u660e\uff0cIntent\u5982\u4f55\u5b9a\u4e49\u53ca\u5982\u4f55\u88ab\u89e3\u6790\u3002\u8fd9\u4e2a\u5e94\u7528\u53ef\u4ee5\u8ba9\u7528\u6237\u6d4f\u89c8\u4fbf\u7b3a\u5217\u8868\u3001\u67e5\u770b\u6bcf\u4e00\u4e2a\u4fbf\u7b3a\u7684\u8be6\u7ec6\u4fe1\u606f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u4e00\u4e2aAndroid\u5e94\u7528\u4e2d\uff0c\u4e3b\u8981\u662f\u7531\u56db\u79cd\u7ec4\u4ef6\u7ec4\u6210\u7684\uff0c\u8fd9\u56db\u79cd\u7ec4\u4ef6\u53ef\u53c2\u8003\u201cAndroid\u5e94\u7528\u7684\u6784\u6210\u201d\u3002 \u800c\u8fd9\u56db\u79cd\u7ec4 [&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":[],"_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":5,"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}]}}