{"id":740,"date":"2019-07-15T14:26:25","date_gmt":"2019-07-15T12:26:25","guid":{"rendered":"https:\/\/myoceane.fr\/?p=740"},"modified":"2019-12-31T10:16:17","modified_gmt":"2019-12-31T09:16:17","slug":"android-%e5%a6%82%e4%bd%95%e9%96%8b%e6%a9%9f%e5%b0%b1%e5%9f%b7%e8%a1%8c%e7%a8%8b%e5%bc%8f-broadcastreceiver","status":"publish","type":"post","link":"https:\/\/myoceane.fr\/index.php\/android-%e5%a6%82%e4%bd%95%e9%96%8b%e6%a9%9f%e5%b0%b1%e5%9f%b7%e8%a1%8c%e7%a8%8b%e5%bc%8f-broadcastreceiver\/","title":{"rendered":"[Android] \u5982\u4f55\u958b\u6a5f\u5c31\u57f7\u884c\u7a0b\u5f0f &#8211;  \u4f7f\u7528 BroadcastReceiver"},"content":{"rendered":"<div id=\"fb-root\"><\/div>\n\n<p style=\"text-align: justify;\">\u5728\u505a\u5747\u923a (Hypro Enterprises) <a href=\"https:\/\/myoceane.fr\/index.php\/%E5%9D%87%E9%88%BA%E7%A7%91%E6%8A%80-hypro-%E5%90%88%E4%BD%9C%E6%A1%88\">\u5c08\u6848<\/a>\u7684\u6642\u5019\uff0c\u767c\u73fe\u70ba\u4e86\u4fdd\u6301\u670d\u52d9\u7684\u7a69\u5b9a\uff0c\u4f8b\u5982\u6301\u7e8c\u63a5\u6536\u85cd\u82bd\u8a0a\u865f\uff0c\u6211\u5011\u9700\u8981\u5728\u4f7f\u7528\u8005\u91cd\u65b0\u958b\u6a5f\u4e4b\u5f8c\u670d\u52d9\u80fd\u5920\u81ea\u52d5\u958b\u555f\u4e26\u4e14\u7e7c\u7e8c\u4e0b\u53bb\uff0c\u4e5f\u5c31\u662f\u8aaa\u7576\u624b\u6a5f\u91cd\u958b\u7684\u6642\u5019\uff0c\u6211\u5011\u8a2d\u8a08\u7684\u7a0b\u5f0f\u9700\u8981\u81ea\u52d5\u5075\u6e2c\u4e26\u4e14\u5728\u5f8c\u7aef\u904b\u884c\u7a0b\u5f0f\u3002\u4e00\u958b\u59cb\u4f7f\u7528\u7684\u65b9\u6cd5\u662f\u5728 AndroidManifest.xml \u52a0\u5165&lt;category android:name=&#8221;android.intent.category.HOME&#8221;\/&gt; \u9019\u500b category \u7684\u610f\u601d\u662f\u8aaa\u7576\u6309\u4e0b Home \u9375\u5c31\u6703\u57f7\u884c Application \u7684\u958b\u555f\u3002<\/p>\n\n\n\n<pre class=\"lang:java mark:8\">&lt;activity \n    android:name=\"hypro.btLogger.MainActivity\" \n    android:label=\"@string\/app_name\" \n    android:theme=\"@style\/Theme.AppCompat.Light.NoActionBar\" \n    android:screenOrientation=\"unspecified\"&gt; \n    &lt;intent-filter&gt; \n        &lt;action android:name=\"android.intent.action.MAIN\"\/&gt; \n        &lt;category android:name=\"android.intent.category.HOME\"\/&gt; \n        &lt;category android:name=\"android.intent.category.DEFAULT\"\/&gt; \n        &lt;category android:name=\"android.intent.category.LAUNCHER\"\/&gt; \n    &lt;\/intent-filter&gt; \n&lt;\/activity&gt;<\/pre>\n<p style=\"text-align: justify;\">\u9019\u500b\u65b9\u6cd5\u53ef\u9069\u7528\u5728\u67d0\u4e00\u4e9b\u55ae\u4e00\u76ee\u7684\u7684\u5d4c\u5165\u5f0f\u7cfb\u7d71\uff0c\u4f8b\u5982 Google \u958b\u767c\u7684 Android Thing\uff0c\u5982\u679c\u88dd\u7f6e\u53ea\u662f\u88ab\u8a2d\u8a08\u51fa\u4f86\u57f7\u884c\u67d0\u500b\u7279\u5b9a\u7684 APP \u7684\u8a71\uff0c\u9019\u662f\u4e00\u500b\u4e0d\u932f\u7684\u89e3\u6c7a\u65b9\u6cd5\uff0c\u4f46\u662f\u5982\u679c\u88dd\u7f6e\u4e0a\u9762\u9084\u8981\u8dd1\u5176\u4ed6\u7684\u61c9\u7528\u7a0b\u5f0f\u7684\u8a71\uff0c\u9019\u5c31\u4e0d\u80fd\u7576\u4f5c\u89e3\u6c7a\u65b9\u6cd5\uff0c\u6240\u4ee5\u6211\u5011\u6703\u9700\u8981\u7528\u5230 BroadcastReceiver \u9019\u4e00\u500b\u985e\u5225\u3002<\/p>\n\n\n\n<p>\u9996\u5148\u4e00\u6a23\u6211\u5011\u9700\u8981\u4fee\u6539 AndroidManifest.xml \u88e1\u9762\uff0c\u4e3b\u8981\u662f\u5728\u88e1\u9762\u589e\u52a0\u4e00\u500b\u6388\u6b0a<\/p>\n<pre class=\"lang:java\">&lt;uses-permission android:name=\"android.permission.RECEIVE_BOOT_COMPLETED\" \/&gt;<\/pre>\n\n\n\n<p style=\"text-align: justify;\">\u5982\u6b64\u4e00\u4f86\u7a0b\u5f0f\u5c31\u80fd\u5920\u5728\u958b\u6a5f\u7684\u6642\u5019\u6536\u5230\u4e00\u500b Broadcast \u544a\u77e5\u6211\u5011\u88dd\u7f6e\u5df2\u7d93\u958b\u555f\u4e86\uff0c\u800c\u63a5\u4e0b\u4f86\u6211\u5011\u53ea\u662f\u9700\u8981\u5ba3\u544a\u4e00\u500b StartBroadcastReceiver \u7e7c\u627f BroadcastReceiver \u4f86\u53cd\u61c9\u7576\u6536\u5230\u958b\u6a5f intent \u6642\u5019\u61c9\u8a72\u8981\u505a\u7684\u4e8b\u60c5\uff0c\u4ee5\u4e0b\u5217\u51fa\u8981\u57f7\u884c Activity \u6216\u662f Service \u7684\u7bc4\u4f8b\u3002<\/p>\n\n\n\n<pre class=\"lang:java\">public class StartBroadcastReceiver extends BroadcastReceiver {\n    @Override\n    public void onReceive(Context context, Intent intent) {\n        if (intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)){    \n            ## Execute Activity\n            Intent intent1 = new Intent(context , MainActivity.class);\n            intent1.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n            context.startActivity(intent1);\n            ## Execute Service\n            Intent intent2 = new Intent(context , MyService.class);\n            context.startService(intent2);\n        }\n    }\n}<\/pre>\n\n\n\n<p style=\"text-align: justify;\">\u63a5\u6536\u5668\u6703\u6536\u5230\u5ee3\u64ad(onReceive)\uff0c\u4e26\u57f7\u884c\u4f60\u60f3\u505a\u7684\u4e8b\u60c5\u3002\u6709\u4e00\u9ede\u8981\u7279\u5225\u6ce8\u610f\uff0conReceive\u7684\u751f\u547d\u9031\u671f\u5927\u7d04\u53ea\u6709\u5341\u79d2\uff0c\u8d85\u904e\u6703\u7522\u751fANR\uff0c\u56e0\u6b64\u4e0d\u8981\u5728\u9019\u908a\u505a\u592a\u8907\u96dc\u7684\u4e8b\u60c5\uff0c\u53ef\u4ee5\u555f\u52d5\u4e00\u500bService\u5f8c\uff0c\u9760Service\u53bb\u57f7\u884c\u4e00\u4e9b\u8f03\u82b1\u6642\u9593\u7684\u52d5\u4f5c\u3002\u8a73\u7d30 ANR \u53ef\u4ee5\u53c3\u8003<a href=\"https:\/\/developer.android.com\/training\/articles\/perf-anr.html\">\u9023\u7d50<\/a>\u3002<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u505a\u5747\u923a (Hypro Enterprises) \u5c08\u6848\u7684\u6642\u5019\uff0c\u767c\u73fe\u70ba\u4e86\u4fdd\u6301\u670d\u52d9\u7684\u7a69\u5b9a\uff0c\u4f8b\u5982\u6301\u7e8c\u63a5\u6536\u85cd\u82bd\u8a0a\u865f\uff0c\u6211\u5011\u9700\u8981\u5728\u4f7f\u7528\u8005\u91cd\u65b0\u958b\u6a5f\u4e4b\u5f8c\u670d\u52d9\u80fd\u5920\u81ea\u52d5\u958b\u555f\u4e26\u4e14\u7e7c\u7e8c\u4e0b\u53bb\uff0c\u7576\u88dd\u7f6e\u91cd\u958b\u7684\u6642\u5019\uff0c\u6211\u5011\u8a2d\u8a08\u7684\u7a0b\u5f0f\u9700\u8981\u81ea\u52d5\u5075\u6e2c\u4e26\u4e14\u5728\u5f8c\u7aef\u904b\u884c\u7a0b\u5f0f\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-740","post","type-post","status-publish","format-standard","hentry","category-android"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[Android] \u5982\u4f55\u958b\u6a5f\u5c31\u57f7\u884c\u7a0b\u5f0f - \u4f7f\u7528 BroadcastReceiver<\/title>\n<meta name=\"description\" content=\"\u5728\u505a\u5747\u923a (Hypro Enterprises) \u5c08\u6848\u7684\u6642\u5019\uff0c\u767c\u73fe\u70ba\u4e86\u4fdd\u6301\u670d\u52d9\u7684\u7a69\u5b9a\uff0c\u4f8b\u5982\u6301\u7e8c\u63a5\u6536\u85cd\u82bd\u8a0a\u865f\uff0c\u6211\u5011\u9700\u8981\u5728\u4f7f\u7528\u8005\u91cd\u65b0\u958b\u6a5f\u4e4b\u5f8c\u670d\u52d9\u80fd\u5920\u81ea\u52d5\u958b\u555f\u4e26\u4e14\u7e7c\u7e8c\u4e0b\u53bb\uff0c\u4e5f\u5c31\u662f\u8aaa\u7576\u624b\u6a5f\u91cd\u958b\u7684\u6642\u5019\uff0c\u6211\u5011\u8a2d\u8a08\u7684\u7a0b\u5f0f\u9700\u8981\u81ea\u52d5\u5075\u6e2c\u4e26\u4e14\u5728\u5f8c\u7aef\u904b\u884c\u7a0b\u5f0f\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/myoceane.fr\/index.php\/android-\u5982\u4f55\u958b\u6a5f\u5c31\u57f7\u884c\u7a0b\u5f0f-broadcastreceiver\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Android] \u5982\u4f55\u958b\u6a5f\u5c31\u57f7\u884c\u7a0b\u5f0f - \u4f7f\u7528 BroadcastReceiver\" \/>\n<meta property=\"og:description\" content=\"\u5728\u505a\u5747\u923a (Hypro Enterprises) \u5c08\u6848\u7684\u6642\u5019\uff0c\u767c\u73fe\u70ba\u4e86\u4fdd\u6301\u670d\u52d9\u7684\u7a69\u5b9a\uff0c\u4f8b\u5982\u6301\u7e8c\u63a5\u6536\u85cd\u82bd\u8a0a\u865f\uff0c\u6211\u5011\u9700\u8981\u5728\u4f7f\u7528\u8005\u91cd\u65b0\u958b\u6a5f\u4e4b\u5f8c\u670d\u52d9\u80fd\u5920\u81ea\u52d5\u958b\u555f\u4e26\u4e14\u7e7c\u7e8c\u4e0b\u53bb\uff0c\u4e5f\u5c31\u662f\u8aaa\u7576\u624b\u6a5f\u91cd\u958b\u7684\u6642\u5019\uff0c\u6211\u5011\u8a2d\u8a08\u7684\u7a0b\u5f0f\u9700\u8981\u81ea\u52d5\u5075\u6e2c\u4e26\u4e14\u5728\u5f8c\u7aef\u904b\u884c\u7a0b\u5f0f\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/myoceane.fr\/index.php\/android-\u5982\u4f55\u958b\u6a5f\u5c31\u57f7\u884c\u7a0b\u5f0f-broadcastreceiver\/\" \/>\n<meta property=\"og:site_name\" content=\"\u60f3\u65b9\u6d89\u6cd5 - \u91cf\u74f6\u5916\u7684\u5929\u7a7a M-Y-Oceane\" \/>\n<meta property=\"article:published_time\" content=\"2019-07-15T12:26:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-12-31T09:16:17+00:00\" \/>\n<meta name=\"author\" content=\"\u6ab8\u6aac\u7238\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6ab8\u6aac\u7238\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/myoceane.fr\/index.php\/android-%e5%a6%82%e4%bd%95%e9%96%8b%e6%a9%9f%e5%b0%b1%e5%9f%b7%e8%a1%8c%e7%a8%8b%e5%bc%8f-broadcastreceiver\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/myoceane.fr\/index.php\/android-%e5%a6%82%e4%bd%95%e9%96%8b%e6%a9%9f%e5%b0%b1%e5%9f%b7%e8%a1%8c%e7%a8%8b%e5%bc%8f-broadcastreceiver\/\"},\"author\":{\"name\":\"\u6ab8\u6aac\u7238\",\"@id\":\"https:\/\/myoceane.fr\/#\/schema\/person\/4a4552fb8c27693083d465e12db7658b\"},\"headline\":\"[Android] \u5982\u4f55\u958b\u6a5f\u5c31\u57f7\u884c\u7a0b\u5f0f &#8211; \u4f7f\u7528 BroadcastReceiver\",\"datePublished\":\"2019-07-15T12:26:25+00:00\",\"dateModified\":\"2019-12-31T09:16:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/myoceane.fr\/index.php\/android-%e5%a6%82%e4%bd%95%e9%96%8b%e6%a9%9f%e5%b0%b1%e5%9f%b7%e8%a1%8c%e7%a8%8b%e5%bc%8f-broadcastreceiver\/\"},\"wordCount\":38,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/myoceane.fr\/#\/schema\/person\/4a4552fb8c27693083d465e12db7658b\"},\"articleSection\":[\"Android\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/myoceane.fr\/index.php\/android-%e5%a6%82%e4%bd%95%e9%96%8b%e6%a9%9f%e5%b0%b1%e5%9f%b7%e8%a1%8c%e7%a8%8b%e5%bc%8f-broadcastreceiver\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/myoceane.fr\/index.php\/android-%e5%a6%82%e4%bd%95%e9%96%8b%e6%a9%9f%e5%b0%b1%e5%9f%b7%e8%a1%8c%e7%a8%8b%e5%bc%8f-broadcastreceiver\/\",\"url\":\"https:\/\/myoceane.fr\/index.php\/android-%e5%a6%82%e4%bd%95%e9%96%8b%e6%a9%9f%e5%b0%b1%e5%9f%b7%e8%a1%8c%e7%a8%8b%e5%bc%8f-broadcastreceiver\/\",\"name\":\"[Android] \u5982\u4f55\u958b\u6a5f\u5c31\u57f7\u884c\u7a0b\u5f0f - \u4f7f\u7528 BroadcastReceiver\",\"isPartOf\":{\"@id\":\"https:\/\/myoceane.fr\/#website\"},\"datePublished\":\"2019-07-15T12:26:25+00:00\",\"dateModified\":\"2019-12-31T09:16:17+00:00\",\"description\":\"\u5728\u505a\u5747\u923a (Hypro Enterprises) \u5c08\u6848\u7684\u6642\u5019\uff0c\u767c\u73fe\u70ba\u4e86\u4fdd\u6301\u670d\u52d9\u7684\u7a69\u5b9a\uff0c\u4f8b\u5982\u6301\u7e8c\u63a5\u6536\u85cd\u82bd\u8a0a\u865f\uff0c\u6211\u5011\u9700\u8981\u5728\u4f7f\u7528\u8005\u91cd\u65b0\u958b\u6a5f\u4e4b\u5f8c\u670d\u52d9\u80fd\u5920\u81ea\u52d5\u958b\u555f\u4e26\u4e14\u7e7c\u7e8c\u4e0b\u53bb\uff0c\u4e5f\u5c31\u662f\u8aaa\u7576\u624b\u6a5f\u91cd\u958b\u7684\u6642\u5019\uff0c\u6211\u5011\u8a2d\u8a08\u7684\u7a0b\u5f0f\u9700\u8981\u81ea\u52d5\u5075\u6e2c\u4e26\u4e14\u5728\u5f8c\u7aef\u904b\u884c\u7a0b\u5f0f\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/myoceane.fr\/index.php\/android-%e5%a6%82%e4%bd%95%e9%96%8b%e6%a9%9f%e5%b0%b1%e5%9f%b7%e8%a1%8c%e7%a8%8b%e5%bc%8f-broadcastreceiver\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/myoceane.fr\/index.php\/android-%e5%a6%82%e4%bd%95%e9%96%8b%e6%a9%9f%e5%b0%b1%e5%9f%b7%e8%a1%8c%e7%a8%8b%e5%bc%8f-broadcastreceiver\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/myoceane.fr\/index.php\/android-%e5%a6%82%e4%bd%95%e9%96%8b%e6%a9%9f%e5%b0%b1%e5%9f%b7%e8%a1%8c%e7%a8%8b%e5%bc%8f-broadcastreceiver\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/myoceane.fr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Android] \u5982\u4f55\u958b\u6a5f\u5c31\u57f7\u884c\u7a0b\u5f0f &#8211; \u4f7f\u7528 BroadcastReceiver\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/myoceane.fr\/#website\",\"url\":\"https:\/\/myoceane.fr\/\",\"name\":\"M-Y-Oceane \u60f3\u65b9\u6d89\u6cd5\u3002\u91cf\u74f6\u5916\u7684\u5929\u7a7a\",\"description\":\"\u60f3\u65b9\u6d89\u6cd5, France, Taiwan, Health, Information Technology\",\"publisher\":{\"@id\":\"https:\/\/myoceane.fr\/#\/schema\/person\/4a4552fb8c27693083d465e12db7658b\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/myoceane.fr\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/myoceane.fr\/#\/schema\/person\/4a4552fb8c27693083d465e12db7658b\",\"name\":\"\u6ab8\u6aac\u7238\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/myoceane.fr\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6cc678684664f8ad45a8d56a6630b183?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6cc678684664f8ad45a8d56a6630b183?s=96&d=mm&r=g\",\"caption\":\"\u6ab8\u6aac\u7238\"},\"logo\":{\"@id\":\"https:\/\/myoceane.fr\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/myoceane.fr\/index.php\/author\/johnny5584767gmail-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Android] \u5982\u4f55\u958b\u6a5f\u5c31\u57f7\u884c\u7a0b\u5f0f - \u4f7f\u7528 BroadcastReceiver","description":"\u5728\u505a\u5747\u923a (Hypro Enterprises) \u5c08\u6848\u7684\u6642\u5019\uff0c\u767c\u73fe\u70ba\u4e86\u4fdd\u6301\u670d\u52d9\u7684\u7a69\u5b9a\uff0c\u4f8b\u5982\u6301\u7e8c\u63a5\u6536\u85cd\u82bd\u8a0a\u865f\uff0c\u6211\u5011\u9700\u8981\u5728\u4f7f\u7528\u8005\u91cd\u65b0\u958b\u6a5f\u4e4b\u5f8c\u670d\u52d9\u80fd\u5920\u81ea\u52d5\u958b\u555f\u4e26\u4e14\u7e7c\u7e8c\u4e0b\u53bb\uff0c\u4e5f\u5c31\u662f\u8aaa\u7576\u624b\u6a5f\u91cd\u958b\u7684\u6642\u5019\uff0c\u6211\u5011\u8a2d\u8a08\u7684\u7a0b\u5f0f\u9700\u8981\u81ea\u52d5\u5075\u6e2c\u4e26\u4e14\u5728\u5f8c\u7aef\u904b\u884c\u7a0b\u5f0f\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/myoceane.fr\/index.php\/android-\u5982\u4f55\u958b\u6a5f\u5c31\u57f7\u884c\u7a0b\u5f0f-broadcastreceiver\/","og_locale":"en_US","og_type":"article","og_title":"[Android] \u5982\u4f55\u958b\u6a5f\u5c31\u57f7\u884c\u7a0b\u5f0f - \u4f7f\u7528 BroadcastReceiver","og_description":"\u5728\u505a\u5747\u923a (Hypro Enterprises) \u5c08\u6848\u7684\u6642\u5019\uff0c\u767c\u73fe\u70ba\u4e86\u4fdd\u6301\u670d\u52d9\u7684\u7a69\u5b9a\uff0c\u4f8b\u5982\u6301\u7e8c\u63a5\u6536\u85cd\u82bd\u8a0a\u865f\uff0c\u6211\u5011\u9700\u8981\u5728\u4f7f\u7528\u8005\u91cd\u65b0\u958b\u6a5f\u4e4b\u5f8c\u670d\u52d9\u80fd\u5920\u81ea\u52d5\u958b\u555f\u4e26\u4e14\u7e7c\u7e8c\u4e0b\u53bb\uff0c\u4e5f\u5c31\u662f\u8aaa\u7576\u624b\u6a5f\u91cd\u958b\u7684\u6642\u5019\uff0c\u6211\u5011\u8a2d\u8a08\u7684\u7a0b\u5f0f\u9700\u8981\u81ea\u52d5\u5075\u6e2c\u4e26\u4e14\u5728\u5f8c\u7aef\u904b\u884c\u7a0b\u5f0f\u3002","og_url":"https:\/\/myoceane.fr\/index.php\/android-\u5982\u4f55\u958b\u6a5f\u5c31\u57f7\u884c\u7a0b\u5f0f-broadcastreceiver\/","og_site_name":"\u60f3\u65b9\u6d89\u6cd5 - \u91cf\u74f6\u5916\u7684\u5929\u7a7a M-Y-Oceane","article_published_time":"2019-07-15T12:26:25+00:00","article_modified_time":"2019-12-31T09:16:17+00:00","author":"\u6ab8\u6aac\u7238","twitter_card":"summary_large_image","twitter_misc":{"Written by":"\u6ab8\u6aac\u7238","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/myoceane.fr\/index.php\/android-%e5%a6%82%e4%bd%95%e9%96%8b%e6%a9%9f%e5%b0%b1%e5%9f%b7%e8%a1%8c%e7%a8%8b%e5%bc%8f-broadcastreceiver\/#article","isPartOf":{"@id":"https:\/\/myoceane.fr\/index.php\/android-%e5%a6%82%e4%bd%95%e9%96%8b%e6%a9%9f%e5%b0%b1%e5%9f%b7%e8%a1%8c%e7%a8%8b%e5%bc%8f-broadcastreceiver\/"},"author":{"name":"\u6ab8\u6aac\u7238","@id":"https:\/\/myoceane.fr\/#\/schema\/person\/4a4552fb8c27693083d465e12db7658b"},"headline":"[Android] \u5982\u4f55\u958b\u6a5f\u5c31\u57f7\u884c\u7a0b\u5f0f &#8211; \u4f7f\u7528 BroadcastReceiver","datePublished":"2019-07-15T12:26:25+00:00","dateModified":"2019-12-31T09:16:17+00:00","mainEntityOfPage":{"@id":"https:\/\/myoceane.fr\/index.php\/android-%e5%a6%82%e4%bd%95%e9%96%8b%e6%a9%9f%e5%b0%b1%e5%9f%b7%e8%a1%8c%e7%a8%8b%e5%bc%8f-broadcastreceiver\/"},"wordCount":38,"commentCount":0,"publisher":{"@id":"https:\/\/myoceane.fr\/#\/schema\/person\/4a4552fb8c27693083d465e12db7658b"},"articleSection":["Android"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/myoceane.fr\/index.php\/android-%e5%a6%82%e4%bd%95%e9%96%8b%e6%a9%9f%e5%b0%b1%e5%9f%b7%e8%a1%8c%e7%a8%8b%e5%bc%8f-broadcastreceiver\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/myoceane.fr\/index.php\/android-%e5%a6%82%e4%bd%95%e9%96%8b%e6%a9%9f%e5%b0%b1%e5%9f%b7%e8%a1%8c%e7%a8%8b%e5%bc%8f-broadcastreceiver\/","url":"https:\/\/myoceane.fr\/index.php\/android-%e5%a6%82%e4%bd%95%e9%96%8b%e6%a9%9f%e5%b0%b1%e5%9f%b7%e8%a1%8c%e7%a8%8b%e5%bc%8f-broadcastreceiver\/","name":"[Android] \u5982\u4f55\u958b\u6a5f\u5c31\u57f7\u884c\u7a0b\u5f0f - \u4f7f\u7528 BroadcastReceiver","isPartOf":{"@id":"https:\/\/myoceane.fr\/#website"},"datePublished":"2019-07-15T12:26:25+00:00","dateModified":"2019-12-31T09:16:17+00:00","description":"\u5728\u505a\u5747\u923a (Hypro Enterprises) \u5c08\u6848\u7684\u6642\u5019\uff0c\u767c\u73fe\u70ba\u4e86\u4fdd\u6301\u670d\u52d9\u7684\u7a69\u5b9a\uff0c\u4f8b\u5982\u6301\u7e8c\u63a5\u6536\u85cd\u82bd\u8a0a\u865f\uff0c\u6211\u5011\u9700\u8981\u5728\u4f7f\u7528\u8005\u91cd\u65b0\u958b\u6a5f\u4e4b\u5f8c\u670d\u52d9\u80fd\u5920\u81ea\u52d5\u958b\u555f\u4e26\u4e14\u7e7c\u7e8c\u4e0b\u53bb\uff0c\u4e5f\u5c31\u662f\u8aaa\u7576\u624b\u6a5f\u91cd\u958b\u7684\u6642\u5019\uff0c\u6211\u5011\u8a2d\u8a08\u7684\u7a0b\u5f0f\u9700\u8981\u81ea\u52d5\u5075\u6e2c\u4e26\u4e14\u5728\u5f8c\u7aef\u904b\u884c\u7a0b\u5f0f\u3002","breadcrumb":{"@id":"https:\/\/myoceane.fr\/index.php\/android-%e5%a6%82%e4%bd%95%e9%96%8b%e6%a9%9f%e5%b0%b1%e5%9f%b7%e8%a1%8c%e7%a8%8b%e5%bc%8f-broadcastreceiver\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/myoceane.fr\/index.php\/android-%e5%a6%82%e4%bd%95%e9%96%8b%e6%a9%9f%e5%b0%b1%e5%9f%b7%e8%a1%8c%e7%a8%8b%e5%bc%8f-broadcastreceiver\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/myoceane.fr\/index.php\/android-%e5%a6%82%e4%bd%95%e9%96%8b%e6%a9%9f%e5%b0%b1%e5%9f%b7%e8%a1%8c%e7%a8%8b%e5%bc%8f-broadcastreceiver\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/myoceane.fr\/"},{"@type":"ListItem","position":2,"name":"[Android] \u5982\u4f55\u958b\u6a5f\u5c31\u57f7\u884c\u7a0b\u5f0f &#8211; \u4f7f\u7528 BroadcastReceiver"}]},{"@type":"WebSite","@id":"https:\/\/myoceane.fr\/#website","url":"https:\/\/myoceane.fr\/","name":"M-Y-Oceane \u60f3\u65b9\u6d89\u6cd5\u3002\u91cf\u74f6\u5916\u7684\u5929\u7a7a","description":"\u60f3\u65b9\u6d89\u6cd5, France, Taiwan, Health, Information Technology","publisher":{"@id":"https:\/\/myoceane.fr\/#\/schema\/person\/4a4552fb8c27693083d465e12db7658b"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/myoceane.fr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/myoceane.fr\/#\/schema\/person\/4a4552fb8c27693083d465e12db7658b","name":"\u6ab8\u6aac\u7238","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/myoceane.fr\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6cc678684664f8ad45a8d56a6630b183?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6cc678684664f8ad45a8d56a6630b183?s=96&d=mm&r=g","caption":"\u6ab8\u6aac\u7238"},"logo":{"@id":"https:\/\/myoceane.fr\/#\/schema\/person\/image\/"},"url":"https:\/\/myoceane.fr\/index.php\/author\/johnny5584767gmail-com\/"}]}},"amp_enabled":false,"_links":{"self":[{"href":"https:\/\/myoceane.fr\/index.php\/wp-json\/wp\/v2\/posts\/740","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myoceane.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myoceane.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myoceane.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/myoceane.fr\/index.php\/wp-json\/wp\/v2\/comments?post=740"}],"version-history":[{"count":110,"href":"https:\/\/myoceane.fr\/index.php\/wp-json\/wp\/v2\/posts\/740\/revisions"}],"predecessor-version":[{"id":2634,"href":"https:\/\/myoceane.fr\/index.php\/wp-json\/wp\/v2\/posts\/740\/revisions\/2634"}],"wp:attachment":[{"href":"https:\/\/myoceane.fr\/index.php\/wp-json\/wp\/v2\/media?parent=740"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myoceane.fr\/index.php\/wp-json\/wp\/v2\/categories?post=740"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myoceane.fr\/index.php\/wp-json\/wp\/v2\/tags?post=740"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}