{"id":13,"date":"2015-02-14T14:51:53","date_gmt":"2015-02-14T14:51:53","guid":{"rendered":"https:\/\/boochlin.com\/?p=13"},"modified":"2015-03-30T01:39:42","modified_gmt":"2015-03-30T01:39:42","slug":"fmradio-%e9%96%8b%e7%99%bc%e7%ad%86%e8%a8%98-%ef%bc%88%e4%b8%89%ef%bc%89-fmradioservice","status":"publish","type":"post","link":"https:\/\/boochlin.com\/?p=13","title":{"rendered":"FMRadio \u958b\u767c\u7b46\u8a18 \uff08\u4e09\uff09- FMRadioService"},"content":{"rendered":"<h1>FMRadioService.java<\/h1>\n<p>Service \u70baandroid \u56fa\u5b9a\u904b\u4f5c\u5728\u5f8c\u53f0\u7684\u4e00\u500bcomponemt\uff0c\u807d\u6536\u97f3\u6a5f\u4e00\u822c\u4f86\u8aaa\u662f\u653e\u5728\u5f8c\u53f0\u904b\u4f5c\uff0c\u7136\u5f8c\u53ef\u4ee5\u540c\u6642\u505a\u5176\u4ed6\u4e8b\u60c5\uff0c\u6216\u662f\u55ae\u7d14\u5e0c\u671b\u5728sleep mode \u80fd\u7e7c\u7e8c\u904b\u4f5c\uff0c\u70ba\u6b64\uff0c\u6b64service\u4e3b\u8981\u529f\u80fd\u70ba\u4fdd\u6301\u8207\u96fb\u53f0\u7684\u9023\u7dda\uff0c\u904b\u7528 audio stream \u4f5c\u6301\u7e8c\u8f38\u51fa\uff0c\u4ee5\u53ca\u5c0d\u61c9\u5176\u4ed6\u76f8\u95dc\u786c\u9ad4\u7684\u56de\u61c9\uff0c\u5982\u4e0b:<\/p>\n<p>1. \u8207\u5e95\u5c64\u6e9d\u901a\uff0c\u53d6\u5f97 fm chip\u7684\u76f8\u95dc\u53c3\u6578\uff0c\u4f5c\u70ba\u96fb\u53f0\u8cc7\u8a0a\u7684\u8b80\u53d6(\u6839\u64da\u5730\u9ede\u8b8a\u66f4\u983b\u6bb5\uff0c\u6216\u662f\u8a0a\u865f\u5f37\u5f31\uff0c\u505a\u51fa\u5c0d\u61c9\u884c\u70ba)\u3002<\/p>\n<p>2. \u53d6\u5f97audio stream\uff0c\u5c0d\u8033\u6a5f\u6216\u662f\u5587\u53ed\u4f5c\u76f8\u95dc\u8f38\u51fa\u3002<\/p>\n<p>3.\u76e3\u807d\u786c\u9ad4\u7684\u72c0\u614b\u8b8a\u5316\uff0c\u505a\u51fa\u5c0d\u61c9\u884c\u70ba(\u62d4\u6389\u8033\u6a5f\u4e4b\u985e\u7684)\u3002<\/p>\n<p>4.\u76e3\u807d\u96fb\u8a71\u72c0\u614b\u7684\u6539\u8b8a\uff0c\u4e00\u822c\u4f86\u8aaa\u4e0d\u6703\u5e0c\u671b\u56e0\u70ba\u807d\u6536\u97f3\u6a5f \uff0c\u5c0e\u81f4\u5ffd\u7565\u4f86\u96fb\uff0c\u9019\u4e5f\u662f\u4e00\u822c\u97f3\u6a02\u985eap\u9700\u8981\u6ce8\u610f\u7684\u5730\u65b9\u3002<\/p>\n<p><!--more--><\/p>\n<h2><i>class<\/i><\/h2>\n<h2><\/h2>\n<h3><b>WakeLock \u00a0\uff06<\/b><b>PowerManager<\/b><\/h3>\n<p><strong><strong>\u00a0<\/strong><\/strong><\/p>\n<p><b>\u662f\u7cfb\u7d71\u7684\u9060\u7aef\u670d\u52d9<\/b><\/p>\n<p><b>wl.acquire(); \/\/\u559a\u9192\u9ede\u4eae\u87a2\u5e55<\/b><\/p>\n<p><strong><strong>\u00a0<\/strong><\/strong><\/p>\n<p><b>\/\/\u9019\u500b\u671f\u9593\u87a2\u5e55\u5c07\u9ede\u4eae<\/b><\/p>\n<p><b>mWakeLock.acquire(10*1000);<\/b><\/p>\n<p><b>wl.release(); \/\/\u6062\u5fa9\u87a2\u5e55\u5230\u9ed1\u6697<\/b><\/p>\n<p><b>wakeLock.setReferenceCounted(false);\u70ba\u8a2d\u7f6e\u5e38\u4eae\u5fc5\u5099\u524d\u63d0<\/b><\/p>\n<p><a href=\"http:\/\/www.cnblogs.com\/nbtsy\/archive\/2012\/03\/07\/2383093.html\"><b>http:\/\/www.cnblogs.com\/nbtsy\/archive\/2012\/03\/07\/2383093.html<\/b><\/a><\/p>\n<p><b>\u518dfmradio\u4e2d\u2026\u65bcfmoff &amp; fmon\u4e2d\u80fd\u4fdd\u6301\u4f11\u7720\u6642\u4fdd\u7559fmradio\u7684cpu<\/b><\/p>\n<p><b>\u5f9epowmanager \u4e2d\u53d6\u5f97\u65b0\u7684newWakeLock\u4e26\u8a2d\u7f6e\u70baPowerManager.PARTIAL_WAKE_LOCK<\/b><\/p>\n<p><strong><strong>\u00a0<\/strong><\/strong><\/p>\n<p>\u4e0b\u9762\u5b9a\u4e49\u7684flag\u662f\u5728newWakeLock\u65b9\u6cd5\u4e2d\u8981\u63a5\u6536\u7684\u53c2\u6570\uff0c\u901a\u8fc7\u8be5flag\uff0c\u4f60\u53ef\u4ee5\u5b9a\u4e49\u7cfb\u7edf\u7684\u7535\u6e90\u7684\u5c55\u793a\u6548\u679c\u3002\u6bd4\u5982\uff1a<\/p>\n<p>* \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 cpu \u00a0\u00a0 screen \u00a0\u00a0 keyboard<\/p>\n<p>* PARTIAL_WAKE_LOCK \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0on \u00a0\u00a0\u00a0\u00a0 off \u00a0 \u00a0 \u00a0 \u00a0 \u00a0off<\/p>\n<p>* SCREEN_DIM_WAKE_LOCK \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 on \u00a0\u00a0\u00a0\u00a0 dim \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 off<\/p>\n<p>* SCREEN_BRIGHT_WAKE_LOCK \u00a0 \u00a0on \u00a0\u00a0\u00a0\u00a0 bright \u00a0\u00a0\u00a0 off<\/p>\n<p>* FULL_WAKE_LOCK \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0on \u00a0\u00a0\u00a0\u00a0 bright \u00a0\u00a0\u00a0 bright<\/p>\n<p>\u8fd9\u4e9bflag\u662f\u76f8\u4e92\u6392\u65a5\u7684\uff0c\u4e00\u6b21\u53ea\u80fd\u5b9a\u4e49\u4e00\u4e2a\u3002<\/p>\n<p>\u5982\u679c\u4f60\u6301\u6709PARTIAL_WAKE_LOCK\u9501\uff0c\u4e0d\u8bba\u4efb\u4f55\u5b9a\u65f6\u5668\u751a\u81f3\u662f\u6309\u4e0b\u7535\u6e90\u6309\u94ae\uff0ccpu\u90fd\u5c06\u7ee7\u7eed\u8fd0\u884c\uff0c\u65e0\u6cd5\u8fdb\u5165\u4f11\u7720\u72b6\u6001\u3002\u9664\u975e\u4f60\u91ca\u653e\u6389\u5b83\u3002<\/p>\n<p>\u5176\u4ed6\u9501\u7684\u8bdd\uff0c\u867d\u7136cpu\u4e5f\u5728\u8fd0\u884c\uff0c\u4f46\u662f\u5f53\u7528\u6237\u6309\u4e0b\u7535\u6e90\u6309\u94ae\u65f6\uff0c\u8bbe\u5907\u5c06\u7acb\u523b\u8fdb\u5165\u4f11\u7720\u72b6\u6001\u3002<\/p>\n<p>\u5982\u679c\u7533\u8bf7\u4e86partial wakelock,\u90a3\u4e48\u5373\u4f7f\u6309Power\u952e,\u7cfb\u7edf\u4e5f\u4e0d\u4f1a\u8fdbSleep,\u5982Music\u64ad\u653e\u65f6<\/p>\n<p>\u5982\u679c\u7533\u8bf7\u4e86\u5176\u5b83\u7684wakelocks,\u6309Power\u952e,\u7cfb\u7edf\u8fd8\u662f\u4f1a\u8fdbSleep<\/p>\n<p>\u6b63\u5e38\u60c5\u51b5\u4e0bwakelocks\u5b9e\u9645\u4e0a\u662f\u6ca1\u6709\u88ab\u6253\u5f00\u7684\uff0c\u5f53\u9700\u8981\u65f6\uff0c\u5b83\u5c06\u901a\u8fc7\u7279\u5b9a\u7684flag\u542f\u52a8\u5c4f\u5e55\u548c\u952e\u76d8\u3002 \u6bd4\u5982\u5728\u5e94\u7528\u4e2d\uff0c\u6d89\u53ca\u5230\u5411\u7528\u6237\u53d1\u9001\u6d88\u606f\u65f6\uff0c\u9700\u8981\u8ba9\u7528\u6237\u7acb\u523b\u770b\u5230\u3002\u6b64\u65f6\u4f1a\u70b9\u4eae\u5c4f\u5e55\u3002\u5f53WakeLock\u9501\u88ab\u91ca\u653e\u7684\u65f6\u5019\uff0cactivity\u7684\u5b9a\u65f6\u5668\u5c06\u88ab\u91cd\u8bbe\uff0c\u8fd9\u5c06\u5bfc\u81f4\u5c4f\u5e55\u4eae\u66f4\u957f\u7684\u65f6\u95f4\u3002<\/p>\n<p><a href=\"http:\/\/blog.csdn.net\/xieqibao\/article\/details\/6562256\">http:\/\/blog.csdn.net\/xieqibao\/article\/details\/6562256<\/a><\/p>\n<p><a href=\"http:\/\/blog.csdn.net\/hzdysymbol\/article\/details\/4004791\">http:\/\/blog.csdn.net\/hzdysymbol\/article\/details\/4004791<\/a><\/p>\n<p>&nbsp;<\/p>\n<h3><b>\u4f7f\u7528wakelock<\/b><\/h3>\n<p>\u5f53\u8bbe\u8ba1\u5728\u540e\u53f0\u64ad\u653e\u5a92\u4f53\u7684\u5e94\u7528\u65f6\uff0c\u5f53\u4f60\u7684service\u6b63\u5728\u8fd0\u884c\u65f6\uff0c\u8bbe\u5907\u53ef\u80fd\u8fdb\u5165\u4f11\u7720\uff0e\u56e0\u4e3aAndroid\u7cfb\u7edf\u5728\u4f11\u7720\u65f6\u4f1a\u8bd5\u7740\u8282\u7701\u7535\u80fd\uff0c\u90a3\u4e48\u7cfb\u7edf\u4f1a\u8bd5\u7740\u5173\u95ed\u7535\u8bdd\u7684\u4efb\u4f55\u4e0d\u5fc5\u8981\u7684\u7279\u6027\uff0c\u5305\u62ecCPU\u548cWiFi\uff0e\u7136\u800c\uff0c\u5982\u679c\u4f60\u7684service\u6b63\u5728\u64ad\u653e\u6216\u63a5\u6536\u97f3\u4e50\uff0c\u4f60\u5c31\u60f3\u963b\u6b62\u7cfb\u7edf\u5e72\u6d89\u4f60\u7684\u64ad\u653e\u5de5\u4f5c\uff0e<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u4e3a\u4e86\u5728\u4e0a\u8ff0\u60c5\u51b5\u4e0b\u4fdd\u8bc1\u4f60\u7684service\u7ee7\u7eed\u8fd0\u884c\uff0c\u4f60\u5fc5\u987b\u4f7f\u7528&#8221;wakelocks&#8221;\uff0e\u4e00\u4e2awakelock\u662f\u4e00\u79cd\u901a\u77e5\u7cfb\u7edf\u5728\u624b\u673a\u7a7a\u95f2\u65f6\u4e5f\u5e94\u4e3a\u4f60\u7684\u5e94\u7528\u4fdd\u7559\u6240\u7528\u7279\u6027\u7684\u9014\u5f84\uff0e<\/p>\n<p>\u6ce8\u610f\uff1a\u4f60\u603b\u662f\u5e94\u8be5\u4fdd\u5b88\u7684\u4f7f\u7528wakelocks\u5e76\u4e14\u4ec5\u5728\u771f\u8bc1\u9700\u8981\u65f6\u624d\u6301\u6709\u5b83\uff0e\u56e0\u4e3a\u5b83\u4eec\u4f1a\u663e\u8457\u7684\u51cf\u5c11\u8bbe\u5907\u7535\u6c60\u7684\u5bff\u547d\uff0e<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h3><b>MediaRecorder<\/b><\/h3>\n<p>\u975e\u5e38\u5b8c\u6574\u7684\u9304\u97f3\u529f\u80fdstate translater<\/p>\n<p><a href=\"http:\/\/android.toolib.net\/reference\/android\/media\/MediaRecorder.html\">http:\/\/android.toolib.net\/reference\/android\/media\/MediaRecorder.html<\/a><\/p>\n<p><a href=\"http:\/\/blog.xuite.net\/dain198\/study\/46393059-%E7%AD%86%E8%A8%98+Android+MediaRecorder+%E5%AA%92%E9%AB%94%E9%8C%84%E8%A3%BD%E9%A1%9E%E5%88%A5+-+%E7%B0%A1%E6%98%93%E9%8C%84%E9%9F%B3%E6%A9%9F\">http:\/\/blog.xuite.net\/dain198\/study\/46393059-%E7%AD%86%E8%A8%98+Android+MediaRecorder+%E5%AA%92%E9%AB%94%E9%8C%84%E8%A3%BD%E9%A1%9E%E5%88%A5+-+%E7%B0%A1%E6%98%93%E9%8C%84%E9%9F%B3%E6%A9%9F<\/a><\/p>\n<p><strong><strong>\u00a0<\/strong><\/strong><\/p>\n<p>\u65bcFMRADIO\u4e2d\u7dad\u8b77\u9304\u97f3\u529f\u80fd\u2026\u5c07\u6536\u97f3\u6a5f\u7684\u8072\u97f3\u9304\u8d77\u4f86<\/p>\n<p>\u4e0d\u904e\u7531\u65bc\u5f8c\u4f86spec\u62ff\u6389\u2026\u6240\u4ee5\u2026\u2026<\/p>\n<p><strong><strong>\u00a0<\/strong><\/strong><\/p>\n<h3><b>AudioManager<\/b><\/h3>\n<p><a href=\"http:\/\/android.toolib.net\/reference\/android\/media\/AudioManager.html\">http:\/\/android.toolib.net\/reference\/android\/media\/AudioManager.html<\/a><\/p>\n<p>\u65bcfmradiomain.java\u4e2d\u6709\u8ac7\u904e\u2026\u4e3b\u8981\u4ee5\u518d\u958b\u555f\u6642\u6aa2\u67e5\u624b\u6a5f\u72c0\u614b<\/p>\n<p>\u65bcfmradioservice.java\u529f\u80fd\u53ef\u591a\u4e86<\/p>\n<p>1.\u53d6\u5f97a2dp\u85cd\u7259<\/p>\n<p>2.\u65bcstartfm stopfm\u4e2d\u53d6\u5f97audiofocus<\/p>\n<p>3.focus change \u5c0d\u61c9\u52d5\u4f5c<\/p>\n<p>4.detect routeAudio<\/p>\n<p>5.mute \u00a0\u4e4b\u985e\u7684\u2026<\/p>\n<p><a href=\"http:\/\/developer.android.com\/reference\/android\/media\/AudioManager.html#abandonAudioFocus(android.media.AudioManager.OnAudioFocusChangeListener)\">http:\/\/developer.android.com\/reference\/android\/media\/AudioManager.html#abandonAudioFocus(android.media.AudioManager.OnAudioFocusChangeListener)<\/a><\/p>\n<p><a href=\"http:\/\/blog.csdn.net\/nkmnkm\/article\/details\/7607934\">http:\/\/blog.csdn.net\/nkmnkm\/article\/details\/7607934<\/a><\/p>\n<p><a href=\"http:\/\/www.cnblogs.com\/over140\/archive\/2011\/08\/07\/2130393.html\">http:\/\/www.cnblogs.com\/over140\/archive\/2011\/08\/07\/2130393.html<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h3><b>TelephonyManager<\/b><\/h3>\n<p><strong><strong>\u00a0<\/strong><\/strong><\/p>\n<pre>\r\n\r\ntmgr = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);\r\n\r\ntmgr.listen(mPhoneStateListener, PhoneStateListener.LISTEN_CALL_STATE |\r\n\r\nPhoneStateListener.LISTEN_DATA_ACTIVITY);\r\n\r\nPhoneStateListener.LISTEN_DATA_ACTIVITY\r\n\r\nPhoneStateListener.LISTEN_CALL_STATE\r\n<\/pre>\n<p>\u4ee3\u8868\u610f\u7fa9\u8acb\u53c3\u8003<\/p>\n<p><a href=\"http:\/\/hi.baidu.com\/wentaokou\/item\/717a61d23bb49cbd32db904b\">http:\/\/hi.baidu.com\/wentaokou\/item\/717a61d23bb49cbd32db904b<\/a><\/p>\n<p>\u65bcfmradio\u4e2d\u4e3b\u8981\u70bafmActionOnCallState\uff08\uff09\u5c0d\u61c9\u624b\u6a5f\u6253\u4f86\u7684\u884c\u70ba.<\/p>\n<pre>\r\n\/\/if Call Status is non IDLE we need to Mute FM as well stop recording if\r\n\r\n\/\/any. Similarly once call is ended FM should be unmuted.\r\n\r\nCALL_STATE_RINGING\r\n\r\nCALL_STATE_OFFHOOK\r\n\r\nCALL_STATE_IDLE\r\n<\/pre>\n<p><strong><strong><br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;divider&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/strong><\/strong><\/p>\n<h2><b>Method<\/b><\/h2>\n<h4>1.\u5c0d\u5916\u90e8\u4e8b\u4ef6\u7684\u63a7\u5236.hdmi.headset,sd card airplane mode control.audiomanger..<\/h4>\n<p>\u540d\u5b50\u53ef\u4ee5\u770b\u51fa\u5404\u5927\u5c0d\u61c9\u52d5\u4f5c<\/p>\n<p><b>registerScreenOnOffListener\uff08\uff09<\/b><\/p>\n<pre>\r\n\r\n\/**\r\n\r\n* Registers an intent to listen for\r\n\r\n* ACTION_SCREEN_ON\/ACTION_SCREEN_OFF notifications. This intent\r\n\r\n* is called to know iwhen the screen is turned on\/off.\r\n\r\n*\/\r\n\r\n<\/pre>\n<p>Intent.ACTION_SCREEN_OFF\u548cIntent.ACTION_SCREEN_ON\u662f\u4e0d\u80fd\u5728AndroidManifest.xml\u88e1\u9762\u5ba3\u544a\u7684<\/p>\n<p><a href=\"http:\/\/hi.baidu.com\/hzd2712\/item\/0877d33760e0c6f7e6bb7a59\">http:\/\/hi.baidu.com\/hzd2712\/item\/0877d33760e0c6f7e6bb7a59<\/a><\/p>\n<p>screen on\uff1a \u5f53\u6309Power\u952e\uff0c\u5c4f\u5e55\u4eae\u7684\u65f6\u5019\u5373\u4e3ascreen on;<\/p>\n<p>screen off:\u3000\u5f53\u6309Power\u952e\uff0c\u5c4f\u5e55\u9ed1\u7684\u65f6\u5019\u5373\u4e3ascreen off;<\/p>\n<p>unlock (\u89e3\u9501)\uff1a\u5f53\u5c4f\u5e55\u4eae\u8d77\uff0c\u79fb\u9664keyguard\u7684\u52a8\u4f5c\uff1b<\/p>\n<p>\u91dd\u5c0d\u72c0\u614b\u53bbsetLowPowerMode(xxx);<\/p>\n<p><strong><strong>\u00a0<\/strong><\/strong><\/p>\n<h3><b>registerHeadsetListener()<\/b><\/h3>\n<p>\/**<\/p>\n<p>* Registers an intent to listen for ACTION_HEADSET_PLUG<\/p>\n<p>* notifications. This intent is called to know if the headset<\/p>\n<p>* was plugged in\/out<\/p>\n<p>*\/<\/p>\n<p>\u4e3b\u8981\u7528\u4f86\u6aa2\u6e2c\u8033\u6a5f\uff08\u542b\u85cd\u7259\uff09\u63d2\u5165\u72c0\u614b<\/p>\n<h4>public static final <a href=\"http:\/\/developer.android.com\/reference\/java\/lang\/String.html\">String<\/a> <b>ACTION_HEADSET_PLUG<\/b><\/h4>\n<p>Added in <a href=\"http:\/\/developer.android.com\/guide\/topics\/manifest\/uses-sdk-element.html#ApiLevels\">API level 1<\/a><\/p>\n<p>Broadcast Action: Wired Headset plugged in or unplugged.<\/p>\n<p>The intent will have the following extra values:<\/p>\n<ul>\n<li><i>state<\/i> &#8211; 0 for unplugged, 1 for plugged.<\/li>\n<li><i>name<\/i> &#8211; Headset type, human readable string<\/li>\n<li><i>microphone<\/i> &#8211; 1 if headset has a microphone, 0 otherwise<\/li>\n<\/ul>\n<p>\u6c92\u5dee\u8033\u6a5f\u5c31\u76f4\u63a5\u5192\u51fa\u63d0\u793a\u2026\u63a5\u8005\u95dc\u9589<\/p>\n<p><b>\u9084\u6709\u6aa2\u67e5 HDMI\u662f\u5426\u63d2\u5165<\/b><\/p>\n<p>\u9019\u88e1\u6bd4\u8f03\u7279\u5225\u7684\u662f\u539f\u751fandroid \u4e26\u6c92\u6709\u63d0\u4f9bhdmi\u63d2\u5165\u7684action<\/p>\n<p>WindowManagerPolicy \u70ba\u96b1\u85cf\u7684\u7b2c\u4e09\u65b9framework \uff08\u4e0d\u662f\u5f88\u78ba\u5b9a\u2026\u53c8\u597d\u50cf\u662f\u5728windowmanagerservice\u4e0b\u7684\u5167\u5343\u985e\u5225\uff09<\/p>\n<pre>\r\nif (action.equals(WindowManagerPolicy.ACTION_HDMI_PLUGGED)) {\r\n\r\n\/\/FM should be off when HDMI is connected.\r\nboolean connected = intent.getBooleanExtra(WindowManagerPolicy.EXTRA_HDMI_PLUGGED_STATE, false);\r\n\u00a0 \u00a0if (connected) {\r\n      fmClose();\r\n}\r\n<\/pre>\n<p>\u5c0d\u61c9\u884c\u70ba\u70ba\u90e8\u63d0\u793a\u76f4\u63a5\u95dc\u6a5f<\/p>\n<p><b>\u6700\u5f8cACTION_SHUTDOWN<\/b><\/p>\n<p><strong><strong>\u00a0<\/strong><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>FMRadioService.java Service \u70baandroid \u56fa\u5b9a\u904b\u4f5c\u5728\u5f8c\u53f0\u7684\u4e00\u500bcomponemt\uff0c\u807d\u6536\u97f3\u6a5f\u4e00\u822c\u4f86\u8aaa\u662f\u653e\u5728\u5f8c\u53f0\u904b\u4f5c\uff0c\u7136\u5f8c\u53ef\u4ee5\u540c\u6642\u505a\u5176\u4ed6\u4e8b\u60c5\uff0c\u6216\u662f\u55ae\u7d14\u5e0c\u671b\u5728sleep mo&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[46],"_links":{"self":[{"href":"https:\/\/boochlin.com\/index.php?rest_route=\/wp\/v2\/posts\/13"}],"collection":[{"href":"https:\/\/boochlin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/boochlin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/boochlin.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/boochlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13"}],"version-history":[{"count":1,"href":"https:\/\/boochlin.com\/index.php?rest_route=\/wp\/v2\/posts\/13\/revisions"}],"predecessor-version":[{"id":32,"href":"https:\/\/boochlin.com\/index.php?rest_route=\/wp\/v2\/posts\/13\/revisions\/32"}],"wp:attachment":[{"href":"https:\/\/boochlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/boochlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/boochlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}