{"id":70391,"date":"2026-02-01T22:33:18","date_gmt":"2026-02-01T14:33:18","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/70391.html"},"modified":"2026-02-01T22:33:18","modified_gmt":"2026-02-01T14:33:18","slug":"android-%e5%9f%ba%e7%a1%80%e5%85%a5%e9%97%a8%e6%95%99%e7%a8%8b3-7-asynctask%e5%bc%82%e6%ad%a5%e4%bb%bb%e5%8a%a1","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/70391.html","title":{"rendered":"\u200b Android \u57fa\u7840\u5165\u95e8\u6559\u7a0b\u200b3.7 AsyncTask\u5f02\u6b65\u4efb\u52a1"},"content":{"rendered":"<h3>3.7 AsyncTask\u5f02\u6b65\u4efb\u52a1<\/h3>\n<h4>\u5206\u7c7b\u00a0Android \u57fa\u7840\u5165\u95e8\u6559\u7a0b<\/h4>\n<h3>\u672c\u8282\u5f15\u8a00&#xff1a;<\/h3>\n<p>\u672c\u8282\u7ed9\u5927\u5bb6\u5e26\u6765\u7684\u662fAndroid\u7ed9\u6211\u4eec\u63d0\u4f9b\u7684\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684\u7528\u4e8e\u5904\u7406\u5f02\u6b65\u4efb\u52a1\u7684\u7c7b:AsyncTask&#xff0c;\u6211\u4eec\u4e00\u822c\u662f \u7ee7\u627fAsyncTask&#xff0c;\u7136\u540e\u5728\u7c7b\u4e2d\u5b9e\u73b0\u5f02\u6b65\u64cd\u4f5c&#xff0c;\u7136\u540e\u5c06\u5f02\u6b65\u6267\u884c\u7684\u8fdb\u5ea6&#xff0c;\u53cd\u9988\u7ed9UI\u4e3b\u7ebf\u7a0b~ \u597d\u5427&#xff0c;\u53ef\u80fd\u6709\u4e9b\u6982\u5ff5\u5927\u5bb6\u4e0d\u61c2&#xff0c;\u89c9\u5f97\u8fd8\u662f\u6709\u5fc5\u8981\u8bb2\u89e3\u4e0b\u591a\u7ebf\u7a0b\u7684\u6982\u5ff5&#xff0c;\u90a3\u5c31\u5148\u89e3\u91ca\u4e0b\u4e00\u4e9b\u6982\u5ff5\u6027\u7684\u4e1c\u897f\u5427&#xff01;<\/p>\n<hr \/>\n<h3>1.\u76f8\u5173\u6982\u5ff5<\/h3>\n<h4>1&#xff09;\u4ec0\u4e48\u662f\u591a\u7ebf\u7a0b&#xff1a;<\/h4>\n<p>\u7b54&#xff1a;\u5148\u8981\u4e86\u89e3\u8fd9\u51e0\u4e2a\u540d\u79f0&#xff1a;\u5e94\u7528\u7a0b\u5e8f&#xff0c;\u8fdb\u7a0b&#xff0c;\u7ebf\u7a0b&#xff0c;\u591a\u7ebf\u7a0b&#xff01;&#xff01;<\/p>\n<ul>\n<li>\u5e94\u7528\u7a0b\u5e8f(Application)&#xff1a;\u4e3a\u4e86\u5b8c\u6210\u7279\u5b9a\u4efb\u52a1&#xff0c;\u7528\u67d0\u79cd\u8bed\u8a00\u7f16\u5199\u7684\u4e00\u7ec4\u6307\u4ee4\u96c6\u5408(\u4e00\u7ec4\u9759\u6001\u4ee3\u7801)<\/li>\n<li>\u8fdb\u7a0b(Process)\u00a0:\u8fd0\u884c\u4e2d\u7684\u7a0b\u5e8f&#xff0c;\u7cfb\u7edf\u8c03\u5ea6\u4e0e\u8d44\u6e90\u5206\u914d\u7684\u4e00\u4e2a\u72ec\u7acb\u5355\u4f4d&#xff0c;\u64cd\u4f5c\u7cfb\u7edf\u4f1a\u4e3a\u6bcf\u4e2a\u8fdb\u7a0b\u5206\u914d \u4e00\u6bb5\u5185\u5b58\u7a7a\u95f4&#xff0c;\u7a0b\u5e8f\u7684\u4f9d\u6b21\u52a8\u6001\u6267\u884c&#xff0c;\u7ecf\u7406\u4ee3\u7801\u52a0\u8f7d -&gt; \u6267\u884c -&gt; \u6267\u884c\u5b8c\u6bd5\u7684\u5b8c\u6574\u8fc7\u7a0b&#xff01;<\/li>\n<li>\u7ebf\u7a0b(Thread)&#xff1a;\u6bd4\u8fdb\u7a0b\u66f4\u5c0f\u7684\u6267\u884c\u5355\u5143&#xff0c;\u6bcf\u4e2a\u8fdb\u7a0b\u53ef\u80fd\u6709\u591a\u6761\u7ebf\u7a0b&#xff0c;\u7ebf\u7a0b\u9700\u8981\u653e\u5728\u4e00\u4e2a\u8fdb\u7a0b\u4e2d\u624d\u80fd\u6267\u884c&#xff01;\u00a0\u7ebf\u7a0b\u662f\u7531\u7a0b\u5e8f\u8d1f\u8d23\u7ba1\u7406\u7684&#xff01;&#xff01;&#xff01;\u800c\u8fdb\u7a0b\u5219\u662f\u7531\u7cfb\u7edf\u8fdb\u884c\u8c03\u5ea6\u7684&#xff01;&#xff01;&#xff01;<\/li>\n<li>\u591a\u7ebf\u7a0b\u6982\u5ff5(Multithreading)&#xff1a;\u5e76\u884c\u5730\u6267\u884c\u591a\u6761\u6307\u4ee4&#xff0c;\u5c06CPU\u7684\u65f6\u95f4\u7247\u6309\u7167\u8c03\u5ea6\u7b97\u6cd5&#xff0c;\u5206\u914d\u7ed9\u5404\u4e2a\u7ebf\u7a0b&#xff0c;\u5b9e\u9645\u4e0a\u662f\u5206\u65f6\u6267\u884c\u7684&#xff0c;\u53ea\u662f\u8fd9\u4e2a\u5207\u6362\u7684\u65f6\u95f4\u5f88\u77ed&#xff0c;\u7528\u6237\u611f\u89c9\u662f\u540c\u65f6\u800c\u5df2&#xff01;<\/li>\n<\/ul>\n<p>\u4e3e\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50&#xff1a;\u00a0\u4f60\u6302\u7740QQ&#xff0c;\u7a81\u7136\u60f3\u53bb\u542c\u6b4c&#xff0c;\u4f60\u9700\u8981\u628aQQ\u5173\u6389&#xff0c;\u7136\u540e\u518d\u53bb\u542f\u52a8XX\u64ad\u653e\u5668\u5417&#xff1f;\u7b54\u6848\u662f\u5426\u5b9a\u7684&#xff0c;\u6211\u4eec\u76f4\u63a5\u6253\u5f00\u64ad\u653e\u5668 \u653e\u6b4c\u5c31\u597d&#xff0c;QQ\u8fd8\u5728\u8fd0\u884c\u7740&#xff0c;\u662f\u5427&#xff01;\u8fd9\u5c31\u662f\u7b80\u5355\u7684\u591a\u7ebf\u7a0b~\u5728\u5b9e\u9645\u5f00\u53d1\u4e2d&#xff0c;\u4e5f\u6709\u8fd9\u6837\u7684\u4f8b\u5b50&#xff0c;\u6bd4\u5982\u5e94\u7528\u6b63\u5728\u8fd0\u884c&#xff0c; \u53d1\u73b0\u65b0\u7248\u672c\u4e86&#xff0c;\u60f3\u540e\u53f0\u66f4\u65b0&#xff0c;\u8fd9\u4e2a\u65f6\u5019\u4e00\u822c\u6211\u4eec\u4f1a\u5f00\u8f9f\u51fa\u4e00\u6761\u540e\u53f0\u7ebf\u7a0b&#xff0c;\u7528\u4e8e\u4e0b\u8f7d\u65b0\u7248\u672c\u7684apk&#xff0c;\u4f46\u662f\u8fd9\u4e2a\u65f6\u5019 \u6211\u4eec\u8fd8\u53ef\u4ee5\u4f7f\u7528\u5e94\u7528\u4e2d\u7684\u5176\u4ed6\u529f\u80fd&#xff01;\u8fd9\u5c31\u662f\u591a\u7ebf\u7a0b\u7684\u4f7f\u7528\u4f8b\u5b50~<\/p>\n<h4>2&#xff09;\u540c\u6b65\u4e0e\u5f02\u6b65\u7684\u6982\u5ff5&#xff1a;<\/h4>\n<p>\u7b54:\u00a0\u540c\u6b65&#xff1a;\u5f53\u6211\u4eec\u6267\u884c\u67d0\u4e2a\u529f\u80fd\u65f6&#xff0c;\u5728\u6ca1\u6709\u5f97\u5230\u7ed3\u679c\u4e4b\u524d&#xff0c;\u8fd9\u4e2a\u8c03\u7528\u5c31\u4e0d\u80fd\u8fd4\u56de&#xff01;\u7b80\u5355\u70b9\u5c31\u662f\u8bf4\u5fc5\u987b \u7b49\u524d\u4e00\u4ef6\u4e8b\u505a\u5b8c\u624d\u80fd\u505a\u4e0b\u4e00\u4ef6\u4e8b&#xff1b;\u4e3e\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50&#xff1a;\u6bd4\u5982\u4f60\u556a\u556a\u556a&#xff0c;\u4e3a\u4e86\u907f\u514d\u5f04\u51fa\u4eba\u547d&#xff0c;\u80af\u5b9a\u8981\u5148\u6234\u597d\u5957\u5957&#xff0c; \u7136\u540e\u518d\u556a\u556a\u556a\u662f\u5427~\u5957\u5957\u6234\u597d -&gt; \u7136\u540e\u556a\u556a\u556a&#xff0c;\u6bd4\u5982\u4f60\u6ca1\u5957\u5957&#xff0c;\u90a3\u556a\u556a\u556a\u7684\u64cd\u4f5c\u5c31\u8981\u7b49\u5f85\u4e86&#xff0c;\u76f4\u5230\u4f60\u628a \u5957\u5957\u4e70\u56de\u6765\u5e26\u4e0a&#xff0c;\u8fd9\u4e2a\u65f6\u5019\u5c31\u53ef\u4ee5\u5f00\u59cb\u556a\u556a\u556a\u4e86~\u4e00\u4e2a\u5f62\u8c61\u5730\u4f8b\u5b50&#xff0c;\u266a(^\u2207^*)\u00a0\u5f02\u6b65&#xff1a;\u548c\u540c\u6b65\u5219\u662f\u76f8\u5bf9\u7684&#xff0c;\u5f53\u6211\u4eec\u6267\u884c\u67d0\u4e2a\u529f\u80fd\u540e&#xff0c;\u6211\u4eec\u5e76\u4e0d\u9700\u8981\u7acb\u5373\u5f97\u5230\u7ed3\u679c&#xff0c;\u6211\u4eec\u989d\u53ef\u4ee5\u6b63\u5e38\u5730 \u505a\u5176\u4ed6\u64cd\u4f5c&#xff0c;\u8fd9\u4e2a\u529f\u80fd\u53ef\u4ee5\u5728\u5b8c\u6210\u540e\u901a\u77e5\u6216\u8005\u56de\u8c03\u6765\u544a\u8bc9\u6211\u4eec&#xff1b;\u8fd8\u662f\u4e0a\u9762\u90a3\u4e2a\u540e\u53f0\u4e0b\u8f7d\u7684\u4f8b\u5b50&#xff0c;\u540e\u53f0\u4e0b\u8f7d&#xff0c; \u6211\u4eec\u6267\u884c\u4e0b\u8f7d\u529f\u80fd\u540e&#xff0c;\u6211\u4eec\u5c31\u65e0\u9700\u53bb\u5173\u5fc3\u5b83\u7684\u4e0b\u8f7d\u8fc7\u7a0b&#xff0c;\u5f53\u4e0b\u8f7d\u5b8c\u6bd5\u540e\u901a\u77e5\u6211\u4eec\u5c31\u53ef\u4ee5\u4e86~<\/p>\n<h4>3) Android \u4e3a\u4ec0\u4e48\u8981\u5f15\u5165\u5f02\u6b65\u4efb\u52a1<\/h4>\n<p>\u7b54&#xff1a;\u56e0\u4e3aAndroid\u7a0b\u5e8f\u521a\u542f\u52a8\u65f6&#xff0c;\u4f1a\u540c\u65f6\u542f\u52a8\u4e00\u4e2a\u5bf9\u5e94\u7684\u4e3b\u7ebf\u7a0b(Main Thread)&#xff0c;\u8fd9\u4e2a\u4e3b\u7ebf\u7a0b\u4e3b\u8981\u8d1f\u8d23\u5904\u7406 \u4e0eUI\u76f8\u5173\u7684\u4e8b\u4ef6&#xff01;\u6709\u65f6\u6211\u4eec\u4e5f\u628a\u4ed6\u79f0\u4f5cUI\u7ebf\u7a0b&#xff01;\u800c\u5728Android App\u65f6\u6211\u4eec\u5fc5\u987b\u9075\u5b88\u8fd9\u4e2a\u5355\u7ebf\u7a0b\u6a21\u578b\u7684\u89c4\u5219&#xff1a;\u00a0Android UI\u64cd\u4f5c\u5e76\u4e0d\u662f\u7ebf\u7a0b\u5b89\u5168\u7684\u5e76\u4e14\u8fd9\u4e9b\u64cd\u4f5c\u90fd\u9700\u8981\u5728UI\u7ebf\u7a0b\u4e2d\u6267\u884c&#xff01;\u00a0\u5047\u5982\u6211\u4eec\u5728\u975eUI\u7ebf\u7a0b\u4e2d&#xff0c;\u6bd4\u5982\u5728\u4e3b\u7ebf\u7a0b\u4e2dnew Thread()\u53e6\u5916\u5f00\u8f9f\u4e00\u4e2a\u7ebf\u7a0b&#xff0c;\u7136\u540e\u76f4\u63a5\u5728\u91cc\u9762\u4fee\u6539UI\u63a7\u4ef6\u7684\u503c&#xff1b; \u6b64\u65f6\u4f1a\u629b\u51fa\u4e0b\u8ff0\u5f02\u5e38&#xff1a;\u00a0android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views\u00a0\u53e6\u5916&#xff0c;\u8fd8\u6709\u4e00\u70b9&#xff0c;\u5982\u679c\u6211\u4eec\u628a\u8017\u65f6\u7684\u64cd\u4f5c\u90fd\u653e\u5728UI\u7ebf\u7a0b\u4e2d\u7684\u8bdd&#xff0c;\u5982\u679cUI\u7ebf\u7a0b\u8d85\u8fc75s\u6ca1\u6709\u54cd\u5e94\u7528\u4e8e\u8bf7\u6c42&#xff0c;\u90a3\u4e48 \u8fd9\u4e2a\u65f6\u5019\u4f1a\u5f15\u53d1ANR(Application Not Responding)\u5f02\u5e38&#xff0c;\u5c31\u662f\u5e94\u7528\u65e0\u54cd\u5e94~ \u6700\u540e\u8fd8\u6709\u4e00\u70b9\u5c31\u662f&#xff1a;Android 4.0\u540e\u7981\u6b62\u5728UI\u7ebf\u7a0b\u4e2d\u6267\u884c\u7f51\u7edc\u64cd\u4f5c~\u4e0d\u7136\u4f1a\u62a5:\u00a0android.os.NetworkOnMainThreadException<\/p>\n<p>\u4ee5\u4e0a\u7684\u79cd\u79cd\u539f\u56e0\u90fd\u8bf4\u660e\u4e86Android\u5f15\u5165\u5f02\u6b65\u4efb\u52a1\u7684\u610f\u4e49&#xff0c;\u5f53\u7136\u5b9e\u73b0\u5f02\u6b65\u4e5f\u4e0d\u53ef\u4ee5\u4e0d\u7528\u5230\u6211\u4eec\u672c\u8282\u8bb2\u89e3 \u7684AsyncTask&#xff0c;\u6211\u4eec\u53ef\u4ee5\u81ea\u5df1\u5f00\u8f9f\u4e00\u4e2a\u7ebf\u7a0b&#xff0c;\u5b8c\u6210\u76f8\u5173\u64cd\u4f5c\u540e&#xff0c;\u901a\u8fc7\u4e0b\u8ff0\u4e24\u79cd\u65b9\u6cd5\u8fdb\u884cUI\u66f4\u65b0&#xff1a;<\/p>\n<li>\u524d\u9762\u6211\u4eec\u5b66\u7684Handler&#xff0c;\u6211\u4eec\u5728Handler\u91cc\u5199\u597dUI\u66f4\u65b0&#xff0c;\u7136\u540e\u901a\u8fc7sendMessage()\u7b49\u7684\u65b9\u6cd5\u901a\u77e5UI \u66f4\u65b0&#xff0c;\u53e6\u5916\u522b\u5fd8\u4e86Handler\u5199\u5728\u4e3b\u7ebf\u7a0b\u548c\u5b50\u7ebf\u7a0b\u4e2d\u7684\u533a\u522b\u54e6~<\/li>\n<li>\u5229\u7528Activity.runOnUiThread(Runnable)\u628a\u66f4\u65b0ui\u7684\u4ee3\u7801\u521b\u5efa\u5728Runnable\u4e2d,\u66f4\u65b0UI\u65f6&#xff0c;\u628aRunnable \u5bf9\u8c61\u4f20\u8fdb\u6765\u5373\u53ef~<\/li>\n<hr \/>\n<h3>2.AsyncTask\u5168\u89e3\u6790&#xff1a;<\/h3>\n<hr \/>\n<h4>1&#xff09;\u4e3a\u4ec0\u4e48\u8981\u7528AsyncTask&#xff1f;<\/h4>\n<p>\u7b54:\u6211\u4eec\u53ef\u4ee5\u7528\u4e0a\u8ff0\u4e24\u79cd\u65b9\u6cd5\u6765\u5b8c\u6210\u6211\u4eec\u7684\u5f02\u6b65\u64cd\u4f5c&#xff0c;\u52a0\u5165\u8981\u6211\u4eec\u5199\u7684\u5f02\u6b65\u64cd\u4f5c\u6bd4\u8f83\u591a&#xff0c;\u6216\u8005\u8f83\u4e3a\u7e41\u7410&#xff0c; \u96be\u9053\u6211\u4eecnew Thread()\u7136\u540e\u7528\u4e0a\u8ff0\u65b9\u6cd5\u901a\u77e5UI\u66f4\u65b0\u4e48&#xff1f;\u7a0b\u5e8f\u5458\u90fd\u662f\u6bd4\u8f83\u559c\u6b22\u5077\u61d2\u7684&#xff0c;\u65e2\u7136\u5b98\u65b9\u7ed9\u6211 \u4eec\u63d0\u4f9b\u4e86AsyncTask\u8fd9\u4e2a\u5c01\u88c5\u597d\u7684\u8f7b\u91cf\u7ea7\u5f02\u6b65\u7c7b&#xff0c;\u4e3a\u4ec0\u4e48\u4e0d\u7528\u5462&#xff1f;\u6211\u4eec\u901a\u8fc7\u51e0\u5341\u884c\u7684\u4ee3\u7801\u5c31\u53ef\u4ee5\u5b8c\u6210 \u6211\u4eec\u7684\u5f02\u6b65\u64cd\u4f5c&#xff0c;\u800c\u4e14\u8fdb\u5ea6\u53ef\u63a7&#xff1b;\u76f8\u6bd4\u8d77Handler&#xff0c;AsyncTask\u663e\u5f97\u66f4\u52a0\u7b80\u5355&#xff0c;\u5feb\u6377~\u5f53\u7136&#xff0c;\u8fd9\u53ea\u9002\u5408 \u7b80\u5355\u7684\u5f02\u6b65\u64cd\u4f5c&#xff0c;\u53e6\u5916&#xff0c;\u5b9e\u9645\u5f02\u6b65\u7528\u7684\u6700\u591a\u7684\u5730\u65b9\u5c31\u662f\u7f51\u7edc\u64cd\u4f5c&#xff0c;\u56fe\u7247\u52a0\u8f7d&#xff0c;\u6570\u636e\u4f20\u8f93\u7b49&#xff0c;AsyncTask \u6682\u65f6\u53ef\u4ee5\u6ee1\u8db3\u521d\u5b66\u8005\u7684\u9700\u6c42&#xff0c;\u8c22\u8c22\u5c0f\u5e94\u7528&#xff0c;\u4f46\u662f\u5230\u4e86\u516c\u53f8\u771f\u6b63\u505a\u9879\u76ee\u4ee5\u540e&#xff0c;\u6211\u4eec\u66f4\u591a\u7684\u4f7f\u7528\u7b2c\u4e09\u53d1\u7684 \u6846\u67b6&#xff0c;\u6bd4\u5982Volley,OkHttp,android-async-http,XUtils\u7b49\u5f88\u591a&#xff0c;\u540e\u9762\u8fdb\u9636\u6559\u7a0b\u6211\u4eec\u4f1a\u90091-2\u4e2a\u6846\u67b6\u8fdb\u884c \u5b66\u4e60&#xff0c;\u5f53\u7136\u4f60\u53ef\u4ee5\u81ea\u5df1\u627e\u8d44\u6599\u5b66\u4e60\u5b66\u4e60&#xff0c;\u4f46\u662f\u638c\u63e1AsyncTask\u8fd8\u662f\u5f88\u6709\u5fc5\u8981\u7684&#xff01;<\/p>\n<hr \/>\n<h4>2&#xff09;AsyncTask\u7684\u57fa\u672c\u7ed3\u6784&#xff1a;<\/h4>\n<p>AsyncTask\u662f\u4e00\u4e2a\u62bd\u8c61\u7c7b&#xff0c;\u4e00\u822c\u6211\u4eec\u90fd\u4f1a\u5b9a\u4e49\u4e00\u4e2a\u7c7b\u7ee7\u627fAsyncTask\u7136\u540e\u91cd\u5199\u76f8\u5173\u65b9\u6cd5~ \u5b98\u65b9API:AsyncTask<\/p>\n<ul>\n<li>\u6784\u5efaAsyncTask\u5b50\u7c7b\u7684\u53c2\u6570&#xff1a;<\/li>\n<\/ul>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"269\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260201143317-697f642d03d5e.jpg\" width=\"629\" \/><\/p>\n<ul>\n<li>\u76f8\u5173\u65b9\u6cd5\u4e0e\u6267\u884c\u6d41\u7a0b&#xff1a;<\/li>\n<\/ul>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"456\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260201143317-697f642d12b9f.jpg\" width=\"871\" \/><\/p>\n<ul>\n<li>\u6ce8\u610f\u4e8b\u9879&#xff1a;<\/li>\n<\/ul>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"169\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260201143317-697f642d3578a.jpg\" width=\"561\" \/><\/p>\n<hr \/>\n<h3>3.AsyncTask\u4f7f\u7528\u793a\u4f8b&#xff1a;<\/h3>\n<p>\u56e0\u4e3a\u6211\u4eec\u8fd8\u6ca1\u5b66\u5230Android\u7f51\u7edc\u90a3\u5757&#xff0c;\u8fd9\u91cc\u7167\u987e\u4e0b\u5404\u4f4d\u521d\u5b66\u8005&#xff0c;\u8fd9\u91cc\u7528\u5ef6\u65f6 \u7ebf\u7a0b\u6765\u6a21\u62df\u6587\u4ef6\u4e0b\u8f7d\u7684\u8fc7\u7a0b~\u540e\u9762\u8bb2\u5230\u7f51\u7edc\u90a3\u91cc\u518d\u7ed9\u5927\u5bb6\u5199\u51e0\u4e2a\u4f8b\u5b50~<\/p>\n<p>\u5b9e\u73b0\u6548\u679c\u56fe&#xff1a;<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"405\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260201143317-697f642d409ab.gif\" width=\"325\" \/><\/p>\n<p>\u5e03\u5c40\u6587\u4ef6:activity.xml&#xff1a;<\/p>\n<p>&lt;LinearLayout xmlns:android&#061;&#034;http:\/\/schemas.android.com\/apk\/res\/android&#034;<br \/>\n    xmlns:tools&#061;&#034;http:\/\/schemas.android.com\/tools&#034;<br \/>\n    android:layout_width&#061;&#034;match_parent&#034;<br \/>\n    android:layout_height&#061;&#034;match_parent&#034;<br \/>\n    android:orientation&#061;&#034;vertical&#034;<br \/>\n    tools:context&#061;&#034;.MyActivity&#034;&gt;<br \/>\n    &lt;TextView<br \/>\n        android:id&#061;&#034;&#064;&#043;id\/txttitle&#034;<br \/>\n        android:layout_width&#061;&#034;wrap_content&#034;<br \/>\n        android:layout_height&#061;&#034;wrap_content&#034; \/&gt;<br \/>\n    &lt;!&#8211;\u8bbe\u7f6e\u4e00\u4e2a\u8fdb\u5ea6\u6761,\u5e76\u4e14\u8bbe\u7f6e\u4e3a\u6c34\u5e73\u65b9\u5411&#8211;&gt;<br \/>\n    &lt;ProgressBar<br \/>\n        android:layout_width&#061;&#034;fill_parent&#034;<br \/>\n        android:layout_height&#061;&#034;wrap_content&#034;<br \/>\n        android:id&#061;&#034;&#064;&#043;id\/pgbar&#034;<br \/>\n        style&#061;&#034;?android:attr\/progressBarStyleHorizontal&#034;\/&gt;<br \/>\n    &lt;Button<br \/>\n        android:layout_width&#061;&#034;wrap_content&#034;<br \/>\n        android:layout_height&#061;&#034;wrap_content&#034;<br \/>\n        android:id&#061;&#034;&#064;&#043;id\/btnupdate&#034;<br \/>\n        android:text&#061;&#034;\u66f4\u65b0progressBar&#034;\/&gt;<br \/>\n&lt;\/LinearLayout&gt;  <\/p>\n<p>\u5b9a\u4e49\u4e00\u4e2a\u5ef6\u65f6\u64cd\u4f5c&#xff0c;\u7528\u4e8e\u6a21\u62df\u4e0b\u8f7d&#xff1a;<\/p>\n<p>public class DelayOperator {<br \/>\n    \/\/\u5ef6\u65f6\u64cd\u4f5c,\u7528\u6765\u6a21\u62df\u4e0b\u8f7d<br \/>\n    public void delay()<br \/>\n    {<br \/>\n        try {<br \/>\n            Thread.sleep(1000);<br \/>\n        }catch (InterruptedException e){<br \/>\n            e.printStackTrace();;<br \/>\n        }<br \/>\n    }<br \/>\n} <\/p>\n<p>\u81ea\u5b9a\u4e49AsyncTask:<\/p>\n<p>public class MyAsyncTask extends AsyncTask&lt;Integer,Integer,String&gt;<br \/>\n{<br \/>\n    private TextView txt;<br \/>\n    private ProgressBar pgbar;  <\/p>\n<p>    public MyAsyncTask(TextView txt,ProgressBar pgbar)<br \/>\n    {<br \/>\n        super();<br \/>\n        this.txt &#061; txt;<br \/>\n        this.pgbar &#061; pgbar;<br \/>\n    }  <\/p>\n<p>    \/\/\u8be5\u65b9\u6cd5\u4e0d\u8fd0\u884c\u5728UI\u7ebf\u7a0b\u4e2d,\u4e3b\u8981\u7528\u4e8e\u5f02\u6b65\u64cd\u4f5c,\u901a\u8fc7\u8c03\u7528publishProgress()\u65b9\u6cd5<br \/>\n    \/\/\u89e6\u53d1onProgressUpdate\u5bf9UI\u8fdb\u884c\u64cd\u4f5c<br \/>\n    &#064;Override<br \/>\n    protected String doInBackground(Integer&#8230; params) {<br \/>\n        DelayOperator dop &#061; new DelayOperator();<br \/>\n        int i &#061; 0;<br \/>\n        for (i &#061; 10;i &lt;&#061; 100;i&#043;&#061;10)<br \/>\n        {<br \/>\n            dop.delay();<br \/>\n            publishProgress(i);<br \/>\n        }<br \/>\n        return  i &#043; params[0].intValue() &#043; &#034;&#034;;<br \/>\n    }  <\/p>\n<p>    \/\/\u8be5\u65b9\u6cd5\u8fd0\u884c\u5728UI\u7ebf\u7a0b\u4e2d,\u53ef\u5bf9UI\u63a7\u4ef6\u8fdb\u884c\u8bbe\u7f6e<br \/>\n    &#064;Override<br \/>\n    protected void onPreExecute() {<br \/>\n        txt.setText(&#034;\u5f00\u59cb\u6267\u884c\u5f02\u6b65\u7ebf\u7a0b~&#034;);<br \/>\n    }  <\/p>\n<p>    \/\/\u5728doBackground\u65b9\u6cd5\u4e2d,\u6bcf\u6b21\u8c03\u7528publishProgress\u65b9\u6cd5\u90fd\u4f1a\u89e6\u53d1\u8be5\u65b9\u6cd5<br \/>\n    \/\/\u8fd0\u884c\u5728UI\u7ebf\u7a0b\u4e2d,\u53ef\u5bf9UI\u63a7\u4ef6\u8fdb\u884c\u64cd\u4f5c  <\/p>\n<p>    &#064;Override<br \/>\n    protected void onProgressUpdate(Integer&#8230; values) {<br \/>\n        int value &#061; values[0];<br \/>\n        pgbar.setProgress(value);<br \/>\n    }<br \/>\n} <\/p>\n<p>MainActivity.java&#xff1a;<\/p>\n<p>public class MyActivity extends ActionBarActivity {  <\/p>\n<p>    private TextView txttitle;<br \/>\n    private ProgressBar pgbar;<br \/>\n    private Button btnupdate;  <\/p>\n<p>    &#064;Override<br \/>\n    protected void onCreate(Bundle savedInstanceState) {<br \/>\n        super.onCreate(savedInstanceState);<br \/>\n        setContentView(R.layout.activity_main);<br \/>\n        txttitle &#061; (TextView)findViewById(R.id.txttitle);<br \/>\n        pgbar &#061; (ProgressBar)findViewById(R.id.pgbar);<br \/>\n        btnupdate &#061; (Button)findViewById(R.id.btnupdate);<br \/>\n        btnupdate.setOnClickListener(new View.OnClickListener() {<br \/>\n            &#064;Override<br \/>\n            public void onClick(View v) {<br \/>\n                MyAsyncTask myTask &#061; new MyAsyncTask(txttitle,pgbar);<br \/>\n                myTask.execute(1000);<br \/>\n            }<br \/>\n        });<br \/>\n    }<br \/>\n}  <\/p>\n<hr \/>\n<h3>\u672c\u8282\u5c0f\u7ed3&#xff1a;<\/h3>\n<p>\u597d\u7684&#xff0c;\u672c\u8282\u4e00\u5f00\u59cb\u7ed9\u5927\u5bb6\u666e\u53ca\u4e86\u4e0b\u5e94\u7528\u7a0b\u5e8f&#xff0c;\u8fdb\u7a0b&#xff0c;\u7ebf\u7a0b&#xff0c;\u591a\u7ebf\u7a0b&#xff0c;\u5f02\u6b65&#xff0c;\u540c\u6b65\u7684\u6982\u5ff5&#xff1b;\u63a5\u7740\u53c8\u8bb2\u89e3 \u4e86\u4e0bAndroid\u4e2d\u4e3a\u4f55\u8981\u5f15\u5165\u5f02\u6b65\u64cd\u4f5c&#xff0c;\u7136\u540e\u4ecb\u7ecd\u4e86\u4e0bAsyncTask\u7684\u7528\u6cd5&#xff0c;\u5f53\u7136\u4e0a\u9762\u4e5f\u8bf4\u4e86&#xff0c;\u5f02\u6b65\u64cd\u4f5c\u5728\u7f51\u7edc \u64cd\u4f5c\u7528\u7684\u8f83\u591a&#xff0c;\u540e\u9762\u5728\u8bb2\u89e3\u7f51\u7edc\u64cd\u4f5c\u65f6\u4f1a\u7528\u5230\u8fd9\u4e2aAsyncTask&#xff0c;\u656c\u8bf7\u671f\u5f85~\u672c\u8282\u5c31\u5230\u8fd9\u91cc&#xff0c;\u8c22\u8c22~<\/p>\n","protected":false},"excerpt":{"rendered":"<p>3.7 AsyncTask\u5f02\u6b65\u4efb\u52a1<br \/>\n\u5206\u7c7b\u00a0Android \u57fa\u7840\u5165\u95e8\u6559\u7a0b<br \/>\n\u672c\u8282\u5f15\u8a00&#xff1a;<br \/>\n\u672c\u8282\u7ed9\u5927\u5bb6\u5e26\u6765\u7684\u662fAndroid\u7ed9\u6211\u4eec\u63d0\u4f9b\u7684\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684\u7528\u4e8e\u5904\u7406\u5f02\u6b65\u4efb\u52a1\u7684\u7c7b:AsyncTask&#xff0c;\u6211\u4eec\u4e00\u822c\u662f \u7ee7\u627fAsyncTask&#xff0c;\u7136\u540e\u5728\u7c7b\u4e2d\u5b9e\u73b0\u5f02\u6b65\u64cd\u4f5c&#xff0c;\u7136\u540e\u5c06\u5f02\u6b65\u6267\u884c\u7684\u8fdb\u5ea6&#xff0c;\u53cd\u9988\u7ed9UI\u4e3b\u7ebf\u7a0b~ \u597d\u5427&#xff0c;\u53ef\u80fd\u6709\u4e9b\u6982\u5ff5\u5927\u5bb6\u4e0d\u61c2&#xff0c;\u89c9\u5f97\u8fd8\u662f\u6709\u5fc5\u8981\u8bb2\u89e3\u4e0b\u591a\u7ebf\u7a0b\u7684\u6982\u5ff5&#xff0c;\u90a3\u5c31\u5148\u89e3\u91ca\u4e0b\u4e00\u4e9b<\/p>\n","protected":false},"author":2,"featured_media":70387,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[84,87],"topic":[],"class_list":["post-70391","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-android","tag-87"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u200b Android \u57fa\u7840\u5165\u95e8\u6559\u7a0b\u200b3.7 AsyncTask\u5f02\u6b65\u4efb\u52a1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/70391.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u200b Android \u57fa\u7840\u5165\u95e8\u6559\u7a0b\u200b3.7 AsyncTask\u5f02\u6b65\u4efb\u52a1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"3.7 AsyncTask\u5f02\u6b65\u4efb\u52a1 \u5206\u7c7b\u00a0Android \u57fa\u7840\u5165\u95e8\u6559\u7a0b \u672c\u8282\u5f15\u8a00&#xff1a; \u672c\u8282\u7ed9\u5927\u5bb6\u5e26\u6765\u7684\u662fAndroid\u7ed9\u6211\u4eec\u63d0\u4f9b\u7684\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684\u7528\u4e8e\u5904\u7406\u5f02\u6b65\u4efb\u52a1\u7684\u7c7b:AsyncTask&#xff0c;\u6211\u4eec\u4e00\u822c\u662f \u7ee7\u627fAsyncTask&#xff0c;\u7136\u540e\u5728\u7c7b\u4e2d\u5b9e\u73b0\u5f02\u6b65\u64cd\u4f5c&#xff0c;\u7136\u540e\u5c06\u5f02\u6b65\u6267\u884c\u7684\u8fdb\u5ea6&#xff0c;\u53cd\u9988\u7ed9UI\u4e3b\u7ebf\u7a0b~ \u597d\u5427&#xff0c;\u53ef\u80fd\u6709\u4e9b\u6982\u5ff5\u5927\u5bb6\u4e0d\u61c2&#xff0c;\u89c9\u5f97\u8fd8\u662f\u6709\u5fc5\u8981\u8bb2\u89e3\u4e0b\u591a\u7ebf\u7a0b\u7684\u6982\u5ff5&#xff0c;\u90a3\u5c31\u5148\u89e3\u91ca\u4e0b\u4e00\u4e9b\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/70391.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-01T14:33:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260201143317-697f642d03d5e.jpg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/70391.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/70391.html\",\"name\":\"\u200b Android \u57fa\u7840\u5165\u95e8\u6559\u7a0b\u200b3.7 AsyncTask\u5f02\u6b65\u4efb\u52a1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-01T14:33:18+00:00\",\"dateModified\":\"2026-02-01T14:33:18+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/70391.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/70391.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/70391.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u200b Android \u57fa\u7840\u5165\u95e8\u6559\u7a0b\u200b3.7 AsyncTask\u5f02\u6b65\u4efb\u52a1\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u200b Android \u57fa\u7840\u5165\u95e8\u6559\u7a0b\u200b3.7 AsyncTask\u5f02\u6b65\u4efb\u52a1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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:\/\/www.wsisp.com\/helps\/70391.html","og_locale":"zh_CN","og_type":"article","og_title":"\u200b Android \u57fa\u7840\u5165\u95e8\u6559\u7a0b\u200b3.7 AsyncTask\u5f02\u6b65\u4efb\u52a1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"3.7 AsyncTask\u5f02\u6b65\u4efb\u52a1 \u5206\u7c7b\u00a0Android \u57fa\u7840\u5165\u95e8\u6559\u7a0b \u672c\u8282\u5f15\u8a00&#xff1a; \u672c\u8282\u7ed9\u5927\u5bb6\u5e26\u6765\u7684\u662fAndroid\u7ed9\u6211\u4eec\u63d0\u4f9b\u7684\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684\u7528\u4e8e\u5904\u7406\u5f02\u6b65\u4efb\u52a1\u7684\u7c7b:AsyncTask&#xff0c;\u6211\u4eec\u4e00\u822c\u662f \u7ee7\u627fAsyncTask&#xff0c;\u7136\u540e\u5728\u7c7b\u4e2d\u5b9e\u73b0\u5f02\u6b65\u64cd\u4f5c&#xff0c;\u7136\u540e\u5c06\u5f02\u6b65\u6267\u884c\u7684\u8fdb\u5ea6&#xff0c;\u53cd\u9988\u7ed9UI\u4e3b\u7ebf\u7a0b~ \u597d\u5427&#xff0c;\u53ef\u80fd\u6709\u4e9b\u6982\u5ff5\u5927\u5bb6\u4e0d\u61c2&#xff0c;\u89c9\u5f97\u8fd8\u662f\u6709\u5fc5\u8981\u8bb2\u89e3\u4e0b\u591a\u7ebf\u7a0b\u7684\u6982\u5ff5&#xff0c;\u90a3\u5c31\u5148\u89e3\u91ca\u4e0b\u4e00\u4e9b","og_url":"https:\/\/www.wsisp.com\/helps\/70391.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-01T14:33:18+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260201143317-697f642d03d5e.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/70391.html","url":"https:\/\/www.wsisp.com\/helps\/70391.html","name":"\u200b Android \u57fa\u7840\u5165\u95e8\u6559\u7a0b\u200b3.7 AsyncTask\u5f02\u6b65\u4efb\u52a1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-01T14:33:18+00:00","dateModified":"2026-02-01T14:33:18+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/70391.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/70391.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/70391.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u200b Android \u57fa\u7840\u5165\u95e8\u6559\u7a0b\u200b3.7 AsyncTask\u5f02\u6b65\u4efb\u52a1"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/70391","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=70391"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/70391\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/70387"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=70391"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=70391"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=70391"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=70391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}