{"id":551,"date":"2025-04-05T12:00:30","date_gmt":"2025-04-05T04:00:30","guid":{"rendered":"https:\/\/www.wunen.com\/index.php\/2025\/04\/05\/android%e9%81%a5%e6%8e%a7%e5%99%a8%ef%bc%9a%e6%8e%a7%e5%88%b6%e7%94%b5%e8%84%91%e4%b8%8a%e7%9a%84%e6%9a%b4%e9%a3%8e%e5%bd%b1%e9%9f%b3%e6%92%ad%e6%94%bec%e4%bd%9c%e4%b8%ba%e6%9c%8d%e5%8a%a1%e7%ab%af\/"},"modified":"2025-04-05T12:00:30","modified_gmt":"2025-04-05T04:00:30","slug":"android%e9%81%a5%e6%8e%a7%e5%99%a8%ef%bc%9a%e6%8e%a7%e5%88%b6%e7%94%b5%e8%84%91%e4%b8%8a%e7%9a%84%e6%9a%b4%e9%a3%8e%e5%bd%b1%e9%9f%b3%e6%92%ad%e6%94%bec%e4%bd%9c%e4%b8%ba%e6%9c%8d%e5%8a%a1%e7%ab%af","status":"publish","type":"post","link":"http:\/\/www.wunen.com\/index.php\/2025\/04\/05\/android%e9%81%a5%e6%8e%a7%e5%99%a8%ef%bc%9a%e6%8e%a7%e5%88%b6%e7%94%b5%e8%84%91%e4%b8%8a%e7%9a%84%e6%9a%b4%e9%a3%8e%e5%bd%b1%e9%9f%b3%e6%92%ad%e6%94%bec%e4%bd%9c%e4%b8%ba%e6%9c%8d%e5%8a%a1%e7%ab%af\/","title":{"rendered":"android\u9065\u63a7\u5668\uff1a\u63a7\u5236\u7535\u8111\u4e0a\u7684\u66b4\u98ce\u5f71\u97f3\u64ad\u653e(C#\u4f5c\u4e3a\u670d\u52a1\u7aef)"},"content":{"rendered":"<div class=\"article_content clearfix\" id=\"article_content\">\n <link href=\"https:\/\/csdnimg.cn\/release\/blogv2\/dist\/mdeditor\/css\/editerView\/kdoc_html_views-1a98987dfd.css\" rel=\"stylesheet\"\/>\n <link href=\"https:\/\/csdnimg.cn\/release\/blogv2\/dist\/mdeditor\/css\/editerView\/ck_htmledit_views-704d5b9767.css\" rel=\"stylesheet\"\/>\n<div class=\"htmledit_views\" id=\"content_views\">\n<p>\n   <a href=\"http:\/\/www.cnblogs.com\/fmnisme\/archive\/2012\/02\/24\/2363223.html\" rel=\"nofollow\"><br \/>\n    http:\/\/www.cnblogs.com\/fmnisme\/archive\/2012\/02\/24\/2363223.html<br \/>\n   <\/a>\n  <\/p>\n<\/p>\n<p style=\"margin-top:5px; margin-right:auto; margin-bottom:5px; margin-left:auto; padding-top:0px; padding-bottom:0px; color:rgb(57,57,57); font-family:verdana,'ms song',Arial,Helvetica,sans-serif; font-size:14px; line-height:21px; text-align:left; background-color:rgb(250,247,239)\">\n   \u4e0d\u77e5\u9053\u5927\u5bb6\u6709\u6ca1\u6709\u548c\u6211\u4e00\u6837\u7684\u4e60\u60ef\uff0c\u559c\u6b22\u8eba\u5728\u5e8a\u4e0a\u770b\u7535\u5f71\uff0c\u624b\u91cc\u8fd8\u62ff\u7740\u624b\u673a\u73a9\u3002\u3002\u3002\n  <\/p>\n<p style=\"margin-top:5px; margin-right:auto; margin-bottom:5px; margin-left:auto; padding-top:0px; padding-bottom:0px; color:rgb(57,57,57); font-family:verdana,'ms song',Arial,Helvetica,sans-serif; font-size:14px; line-height:21px; text-align:left; background-color:rgb(250,247,239)\">\n   \u6240\u4ee5\u6211\u5c31\u60f3\u5230\u4e86\u8fd9\u6837\u4e00\u4e2a\u7a0b\u5e8f\uff1a\u7528android\u624b\u673a\u63a7\u5236\u7535\u8111\u4e0a\u7684\u66b4\u98ce\u5f71\u97f3\u64ad\u653e\uff08\u5f53\u7136\uff0c\u540c\u6837\u7684\u65b9\u6cd5\u4e5f\u9002\u7528\u4e8epps\u4ec0\u4e48\u7684\uff09\u3002\u5927\u51b7\u5929\u7684\uff0c\u6765\u7535\u8bdd\u9700\u8981\u6682\u505c\u7535\u5f71\u7535\u89c6\u7684\u64ad\u653e\uff0c\u53ea\u8981\u5728\u88ab\u7a9d\u91cc\u8f7b\u8f7b\u4e00\u6643\u624b\u673a\uff0c\u5c31\u505c\u6b62\u64ad\u653e\u4e86\uff0c\u611f\u89c9\u8fd8\u662f\u633a\u723d\u7684\uff0c\u54c8\u54c8\u3002\n  <\/p>\n<p style=\"margin-top:5px; margin-right:auto; margin-bottom:5px; margin-left:auto; padding-top:0px; padding-bottom:0px; color:rgb(57,57,57); font-family:verdana,'ms song',Arial,Helvetica,sans-serif; font-size:14px; line-height:21px; text-align:left; background-color:rgb(250,247,239)\">\n   \u9996\u5148\u8bb2\u4e00\u4e0b\u624b\u673a\u548c\u7535\u8111\u7684\u4e92\u8054\uff1a\n  <\/p>\n<p style=\"margin-top:5px; margin-right:auto; margin-bottom:5px; margin-left:auto; padding-top:0px; padding-bottom:0px; color:rgb(57,57,57); font-family:verdana,'ms song',Arial,Helvetica,sans-serif; font-size:14px; line-height:21px; text-align:left; background-color:rgb(250,247,239)\">\n   1\uff0c\u5bb6\u91cc\u6709\u65e0\u7ebf\u7f51\u8def\u7531\u5668\u7684\u8bdd\uff0c\u76f4\u63a5\u5c06\u624b\u673a\u4ecb\u5165\u65e0\u7ebf\u7f51\u5c31\u53ef\u4ee5\u4e86\u3002\n  <\/p>\n<p style=\"margin-top:5px; margin-right:auto; margin-bottom:5px; margin-left:auto; padding-top:0px; padding-bottom:0px; color:rgb(57,57,57); font-family:verdana,'ms song',Arial,Helvetica,sans-serif; font-size:14px; line-height:21px; text-align:left; background-color:rgb(250,247,239)\">\n   2\uff0c\u53ea\u6709\u624b\u673a\u548c\u7b14\u8bb0\u672c\u7684\u8bdd\uff0c\u53ef\u4ee5\u6253\u5f00android\u7684wifi\u70ed\u70b9\u3002\u8bbe\u7f6e-\u65e0\u7ebf\u548c\u7f51\u7edc-\u7ed1\u5b9a\u4e0e\u4fbf\u643a\u5f0f\u70ed\u70b9\uff0c\u6253\u5f00\u4fbf\u643a\u5f0f\u70ed\u70b9\u3002\u7136\u540e\u7528\u7b14\u8bb0\u672c\u8fde\u63a5\u3002<br \/>\n   <span style=\"margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; color:rgb(255,0,0)\"><br \/>\n    \u8fd9\u91cc\u8981\u6ce8\u610f\u4e00\u4e0b\uff0c\u7b14\u8bb0\u672c\u81ea\u52a8\u83b7\u53d6ip\u7684\u8bdd\uff0c\u5c31\u53ef\u4ee5\u901a\u8fc7android\u4e0a\u7f51\u4e86\uff0c\u60f3\u963b\u6b62\u7b14\u8bb0\u672c\u8054\u7f51(\u7701\u6d41\u91cf),\u53ef\u4ee5\u770b\u4e0b\u7b14\u8bb0\u672c\u81ea\u52a8\u83b7\u53d6\u5230\u7684ip\u548c\u63a9\u7801\uff0c\u7136\u540e\u5c06ip\u6539\u4e3a\u624b\u52a8\u8bbe\u7f6e\uff0c\u586b\u5165\u521a\u624d\u81ea\u52a8\u83b7\u53d6\u7684ip\u548c\u63a9\u7801\uff0c\u6ce8\u610f\u5343\u4e07\u4e0d\u8981\u8bbe\u7f6e\u7f51\u5173\u548cdns\uff0c\u4e0d\u7136\u4f60\u5c31\u7b49\u7740\u6d41\u91cf\u8017\u5b8c\u6cea\u5954\u5427\u3002<br \/>\n   <\/span>\n  <\/p>\n<p style=\"margin-top:5px; margin-right:auto; margin-bottom:5px; margin-left:auto; padding-top:0px; padding-bottom:0px; color:rgb(57,57,57); font-family:verdana,'ms song',Arial,Helvetica,sans-serif; font-size:14px; line-height:21px; text-align:left; background-color:rgb(250,247,239)\">\n   \u4e0b\u9762\u662f\u5b9e\u73b0\u539f\u7406\uff1a\n  <\/p>\n<p style=\"margin-top:5px; margin-right:auto; margin-bottom:5px; margin-left:auto; padding-top:0px; padding-bottom:0px; color:rgb(57,57,57); font-family:verdana,'ms song',Arial,Helvetica,sans-serif; font-size:14px; line-height:21px; text-align:left; background-color:rgb(250,247,239)\">\n   \u64ad\u653e\u5668\u90fd\u6709\u81ea\u5df1\u7684\u5feb\u6377\u952e\uff0c\u6bd4\u5982\u66b4\u98ce\uff1a\u7a7a\u683c\u952e\u662f\u6682\u505c\uff0cctrl+left\u662f\u5feb\u9000\uff0cctrl+right\u662f\u5feb\u8fdb\u3002\u6240\u4ee5\u6211\u5c31\u60f3\u5230\u4e86\u7528PostMessage\u65b9\u6cd5\u5411(\u672c\u6765\u662f\u7528SendMessage\u7684\uff0c\u53ef\u662f\u4e0d\u7ba1\u7528\uff0c\u540e\u6765\u6539\u6210PostMessage\u540e\u5c31\u597d\u4e86&#8211;\/\/)\u66b4\u98ce\u5f71\u97f3\u7a97\u53e3\u53d1\u9001\u952e\u76d8\u6d88\u606f\u3002\u6240\u4ee5\u8981\u5728\u7535\u8111\u4e0a\u7528C#\u5199\u4e00\u4e2a\u7a0b\u5e8f\uff0c\u7528\u6765\u63a5\u6536android\u624b\u673a\u7684\u6d88\u606f\uff0c\u7136\u540e\u4f7f\u7528PostMessage\u65b9\u6cd5\u6765\u63a7\u5236\u66b4\u98ce\u5f71\u97f3\u3002\u65e0\u8bba\u66b4\u98ce\u5f71\u97f3\u6700\u5c0f\u5316\u8fd8\u662f\u5168\u5c4f\u64ad\u653e\u90fd\u662f\u53ef\u4ee5\u63a5\u6536\u5230\u6d88\u606f\u7684\u3002\n  <\/p>\n<p style=\"margin-top:5px; margin-right:auto; margin-bottom:5px; margin-left:auto; padding-top:0px; padding-bottom:0px; color:rgb(57,57,57); font-family:verdana,'ms song',Arial,Helvetica,sans-serif; font-size:14px; line-height:21px; text-align:left; background-color:rgb(250,247,239)\">\n   \u4e0b\u9762\u662f\u5b9e\u73b0\u65b9\u6cd5\uff1a\n  <\/p>\n<p style=\"margin-top:5px; margin-right:auto; margin-bottom:5px; margin-left:auto; padding-top:0px; padding-bottom:0px; color:rgb(57,57,57); font-family:verdana,'ms song',Arial,Helvetica,sans-serif; font-size:14px; line-height:21px; text-align:left; background-color:rgb(250,247,239)\">\n   <span style=\"margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px\"><br \/>\n    \u4e00\uff0c\u9996\u5148\u662f\u7535\u8111\u4e0a\u7684C#\u76d1\u542c\u7a0b\u5e8f\uff0c\u9996\u5148\u65b0\u5efa\u4e00\u4e2aSendMsg\u7c7b\uff0c\u5b9e\u73b0\u5411\u66b4\u98ce\u5f71\u97f3\u53d1\u9001\u6d88\u606f\u3002<br \/>\n   <\/span>\n  <\/p>\n<p style=\"margin-top:5px; margin-right:auto; margin-bottom:5px; margin-left:auto; padding-top:0px; padding-bottom:0px; color:rgb(57,57,57); font-family:verdana,'ms song',Arial,Helvetica,sans-serif; font-size:14px; line-height:21px; text-align:left; background-color:rgb(250,247,239)\">\n   \u5176\u4e2d\u5411\u952e\u76d8\u53d1\u9001\u7684\u6d88\u606f\uff0c\u6211\u4f7f\u7528\u4e86spy++\u6765\u4e0d\u4f5c\u7684\uff0c\u4e0d\u77e5\u9053\u4f7f\u7528\u7684google\u4e00\u4e0b\u3002<br \/>\n   <span style=\"margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; background-color:rgb(255,255,255); color:rgb(255,0,0)\"><br \/>\n    \u5176\u4e2d\u78b0\u5230\u4e86\u4e00\u4e2a\u95ee\u9898\uff0c\u65e0\u6cd5\u4f7f\u7528postMessage\u5411\u8fdb\u7a0b\u53d1\u9001\u201cCtrl+left\u201d\u7ec4\u5408\u952e\uff0c\u7f51\u4e0a\u67e5\u4e86\u4e00\u4e0b\u4e5f\u8bf4\u4e0d\u53ef\u4ee5\uff0c\u5e0c\u671b\u77e5\u9053\u7684\u670b\u53cb\u5199\u4e00\u4e0b\u65b9\u6cd5\u3002\u6240\u4ee5\u6211\u5c31\u5728\u66b4\u98ce\u5f71\u97f3\u91cc\u4fee\u6539\u4e86\u4e00\u4e0b\u5feb\u6377\u952e\uff0c\u5c06\u5feb\u8fdb\u548c\u5feb\u9000\u529f\u80fd\u5206\u522b\u53d8\u4e3aright\u548cleft\u3002<br \/>\n   <\/span>\n  <\/p>\n<p style=\"margin-top:5px; margin-right:auto; margin-bottom:5px; margin-left:auto; padding-top:0px; padding-bottom:0px; color:rgb(57,57,57); font-family:verdana,'ms song',Arial,Helvetica,sans-serif; font-size:14px; line-height:21px; text-align:left; background-color:rgb(250,247,239)\">\n   <span style=\"margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; background-color:rgb(255,255,255); color:rgb(255,0,0)\"><br \/>\n    <span style=\"margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; color:rgb(0,0,0)\"><br \/>\n     \u5b9e\u73b0\u64ad\u653e\u6682\u505c\u7684\u4ee3\u7801\u7247\u6bb5<br \/>\n    <\/span><br \/>\n   <\/span>\n  <\/p>\n<pre><code class=\"language-java\">\/\/\/ &lt;summary&gt;\n        \/\/\/ \u5f00\u59cb\uff0c\u6682\u505c\n        \/\/\/ &lt;\/summary&gt;\n        public void StartOrStop()\n        {\n            PostMessage(mainWindowHander, 0x0100, 0x20, 0x20390001);\n            PostMessage(mainWindowHander, 0x0101, 0x20, 0x20390001);\n        }<\/code><\/pre>\n<\/p>\n<p style=\"margin-top:5px; margin-right:auto; margin-bottom:5px; margin-left:auto; padding-top:0px; padding-bottom:0px; color:rgb(57,57,57); font-family:verdana,'ms song',Arial,Helvetica,sans-serif; font-size:14px; line-height:21px; text-align:left; background-color:rgb(250,247,239)\">\n   <span style=\"margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px\"><br \/>\n    PostMessage\u4e2d<br \/>\n    <span style=\"margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; color:rgb(128,0,128)\"><br \/>\n     0x20390001<br \/>\n    <\/span><br \/>\n    \u4ee3\u8868\u7a7a\u683c\u952e\u3002PostMessage\u53d1\u52a8\u952e\u76d8\u6d88\u606f\u7684\u4f7f\u7528\u53ef\u4ee5\u53c2\u8003<br \/>\n   <\/span><br \/>\n   <a href=\"http:\/\/www.cnblogs.com\/love2wllw\/archive\/2010\/09\/05\/1818689.html\" rel=\"nofollow noopener noreferrer\" style=\"margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; color:rgb(100,102,179)\" target=\"_blank\"><br \/>\n    C#\u4e2d\u4f7f\u7528 SendMessage \u5411\u975e\u9876\u7aef\u7a97\u4f53\u53d1\u9001\u7ec4\u5408\u952e<br \/>\n   <\/a><br \/>\n   \u3002\n  <\/p>\n<p style=\"margin-top:5px; margin-right:auto; margin-bottom:5px; margin-left:auto; padding-top:0px; padding-bottom:0px; color:rgb(57,57,57); font-family:verdana,'ms song',Arial,Helvetica,sans-serif; font-size:14px; line-height:21px; text-align:left; background-color:rgb(250,247,239)\">\n   <span style=\"margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px\"><br \/>\n    \u4e0a\u9762\u7684\u8fd9\u4e2a\u65b9\u6cd5\u6a21\u62df\u5728\u66b4\u98ce\u5f71\u97f3\u4e0a\u6309\u4e0b\uff0c\u677e\u5f00\u7a7a\u683c\u952e\u3002<br \/>\n    <br style=\"margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px\"\/><br \/>\n    <br style=\"margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px\"\/><br \/>\n   <\/span>\n  <\/p>\n<p style=\"margin-top:5px; margin-right:auto; margin-bottom:5px; margin-left:auto; padding-top:0px; padding-bottom:0px; color:rgb(57,57,57); font-family:verdana,'ms song',Arial,Helvetica,sans-serif; font-size:14px; line-height:21px; text-align:left; background-color:rgb(250,247,239)\">\n   <span style=\"margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; background-color:rgb(255,255,255); color:rgb(255,0,0)\"><br \/>\n    <span style=\"margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; color:rgb(0,0,0)\"><br \/>\n     \u4e0b\u9762\u662f\u5b8c\u6574\u7684\u4ee3\u7801<br \/>\n    <\/span><br \/>\n   <\/span>\n  <\/p>\n<p style=\"margin-top:5px; margin-right:auto; margin-bottom:5px; margin-left:auto; padding-top:0px; padding-bottom:0px; color:rgb(57,57,57); font-family:verdana,'ms song',Arial,Helvetica,sans-serif; font-size:14px; line-height:21px; text-align:left; background-color:rgb(250,247,239)\">\n   <span style=\"margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; background-color:rgb(255,255,255); color:rgb(255,0,0)\"><br \/>\n    <span style=\"margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; color:rgb(0,0,0)\"><br \/>\n    <\/span><br \/>\n   <\/span>\n  <\/p>\n<pre><code class=\"language-java\">using System;\n using System.Runtime.InteropServices;\n using System.Diagnostics;\n using System.Threading;\n \n namespace \u66b4\u98cecontrol\n {\n     public class SendMsg\n     {\n         [DllImport(\"user32.dll\", EntryPoint = \"PostMessage\")]\u3000\u3000\/\/\u4f7f\u7528\u7cfb\u7edf\u7684\u975e\u6258\u7ba1\u4ee3\u7801\u3002\n         public static extern int PostMessage(\n             IntPtr hwnd,\n             int wMsg,\n             uint wParam,\n             uint lParam\n         );\n \n         IntPtr mainWindowHander;\n \n         \/\/\/ &lt;summary&gt;\n \/\/\/ \u904d\u5386\u7535\u8111\u6240\u6709\u7684\u8fdb\u7a0b\uff0c\u83b7\u53d6\u66b4\u98ce\u5f71\u97f3\u53e5\u67c4\n \/\/\/ &lt;\/summary&gt;\n         public SendMsg()\n         {\n             Process[] allProcesses = Process.GetProcesses();\n             foreach (Process p in allProcesses)\n             {\n                 if (p.ProcessName == \"StormPlayer\")\u3000\u3000\/\/\u6700\u65b0\u7248\u66b4\u98ce\u7684\u8fdb\u7a0b\u540d\u662fStormPlayer,\u4ee5\u524d\u7684\u662fStorm\u5728\u4efb\u52a1\u7ba1\u7406\u5668\u91cc\u53ef\u4ee5\u770b\u5230\uff0c\u8fd9\u91cc\u4e0d\u4e00\u6837\u8981\u4fee\u6539\u4e00\u4e0b\u3002\n                     mainWindowHander = p.MainWindowHandle;\n             }\n             if (mainWindowHander == IntPtr.Zero)\n             {\n                 Process p = new Process();\n                 p.StartInfo.FileName = @\"D:\\Baofeng\\StormPlayer\\StormPlayer.exe\"; \/\/\u66b4\u98ce\u5f71\u97f3\u5730\u5740\uff0c\u6539\u6210\u4f60\u4eec\u81ea\u5df1\u7684\u3002\n                 p.Start();\n                 Thread.Sleep(3000);\u3000\u3000\/\/\u8fd9\u91cc\u662f\u7b28\u65b9\u6cd5\uff0c\u8981\u7b49\u5f853\u79d2\uff0c\u4ee5\u514d\u66b4\u98ce\u5f71\u97f3\u8fdb\u7a0b\u8fd8\u6ca1\u6709\u542f\u52a8\u5c31\u83b7\u53d6\u53e5\u67c4\u3002\n                 mainWindowHander = p.MainWindowHandle;\n             }\n         }\n \n         \/\/\/ &lt;summary&gt;\n \/\/\/ \u5f00\u59cb\uff0c\u6682\u505c\n \/\/\/ &lt;\/summary&gt;\n         public void StartOrStop()\n         {\n             PostMessage(mainWindowHander, 0x0100, 0x20, 0x20390001);\n             PostMessage(mainWindowHander, 0x0101, 0x20, 0x20390001);\n         }\n \n         \/\/\/ &lt;summary&gt;\n \/\/\/ \u5feb\u9000\n \/\/\/ &lt;\/summary&gt;\n         public void Back()\n         {\n             PostMessage(mainWindowHander, 0x0100, 0x25, 0x204b0001);\n             PostMessage(mainWindowHander, 0x0101, 0x25, 0x204b0001);\n         }\n \n         \/\/\/ &lt;summary&gt;\n \/\/\/ \u5feb\u8fdb\n \/\/\/ &lt;\/summary&gt;\n         public void Qian()\n         {\n             PostMessage(mainWindowHander, 0x0100, 0x27, 0x204d0001);\n             PostMessage(mainWindowHander, 0x0101, 0x27, 0x204d0001);\n         }\n     }\n }<\/code><\/pre>\n<p><\/p>\n<p style=\"margin-top:5px; margin-right:auto; margin-bottom:5px; margin-left:auto; padding-top:0px; padding-bottom:0px; color:rgb(57,57,57); font-family:verdana,'ms song',Arial,Helvetica,sans-serif; font-size:14px; line-height:21px; text-align:left; background-color:rgb(250,247,239)\">\n   <span style=\"margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px\"><br \/>\n    \u4e8c\uff0cC#\u548candroid\u4f7f\u7528socket\u901a\u4fe1\u3002<br \/>\n   <\/span>\n  <\/p>\n<p style=\"margin-top:5px; margin-right:auto; margin-bottom:5px; margin-left:auto; padding-top:0px; padding-bottom:0px; color:rgb(57,57,57); font-family:verdana,'ms song',Arial,Helvetica,sans-serif; font-size:14px; line-height:21px; text-align:left; background-color:rgb(250,247,239)\">\n   C#\u670d\u52a1\u7aef\u7684\u4ee3\u7801\uff1a\n  <\/p>\n<pre><code class=\"language-java\">using System;\nusing System.Text;\nusing System.Net.Sockets;\nusing System.Net;\nusing System.Threading;\nusing System.Windows.Forms;\n\nnamespace \u66b4\u98cecontrol\n{\n    class NetControl\n    {\n        SendMsg sendMsg = new SendMsg();\n        TextBox textBox;\n\n        public NetControl(TextBox tmpTextBox)\n        {\n            textBox = tmpTextBox;\n        }\n\n        public void BeginListen()\n        {\n            Thread.CurrentThread.IsBackground = true;\n            TcpListener server = new TcpListener(IPAddress.Any, 12121);\n            server.Start();\n            while (true)\n            {\n                TcpClient client= server.AcceptTcpClient();\n                Thread clientThread = new Thread(new ParameterizedThreadStart(receiveMsg));\n                clientThread.Start(client);\n            }\n        }\n\n        \/\/\/ &lt;summary&gt;\n        \/\/\/ \u670d\u52a1\u5668\u4fa6\u542c\n        \/\/\/ &lt;\/summary&gt;\n        \/\/\/ &lt;param name=\"result\"&gt;&lt;\/param&gt;\n        private void receiveMsg(Object obj)\n        {\n            Control.CheckForIllegalCrossThreadCalls = false;\n            Thread.CurrentThread.IsBackground = true;\n            using (TcpClient client =(TcpClient)obj)\n            {\n                using (NetworkStream stream = client.GetStream())\n                {\n                    int dataLength = 0;\n                    string str;\n                    string msg;\n                    do\n                    {\n                        byte[] buffer = new byte[32];\n                        dataLength = stream.Read(buffer, 0, buffer.Length);\n                        str = Encoding.ASCII.GetString(buffer, 0, dataLength);\n                        msg = Encoding.ASCII.GetString(buffer);\n                        sendMessage(msg);\n                        textBox.Text += \"\\r\\n\" + msg + \"\\r\\n-----\";\n                    } while (client.Connected &amp;&amp; msg.Substring(0, 4)!=\"over\");\u3000\u3000\/\/\u5c31\u53d7\u5230over\u5b57\u7b26\u4e32\u5c31\u65ad\u5f00\u8fde\u63a5\uff0c\u5426\u5219\u4f1a\u51fa\u73b0\u6b7b\u5faa\u73af\u3002\u3002\u3002\n                }            }\n        }\n\n        \/\/\/ &lt;summary&gt;\n        \/\/\/ \u6839\u636e\u6536\u5230\u4fe1\u606f\uff0c\u4f7f\u7528\u4e0d\u540c\u7684\u529f\u80fd(\u5feb\u8fdb\uff0c\u6682\u505c\u7b49)\n        \/\/\/ &lt;\/summary&gt;\n        private void sendMessage(string msg)\n        {\n            string res=msg.Substring(0,4);\n            switch (res)\n            { \n                case \"back\":\n                    sendMsg.Back();\n                    break;\n                case \"qian\":\n                    sendMsg.Qian();\n                    break;\n                case \"stsp\":\n                    sendMsg.StartOrStop();\n                    break;\n            }\n        }\n    }\n}<\/code><\/pre>\n<p>\n  <span style=\"color:rgb(57,57,57); font-family:verdana,'ms song',Arial,Helvetica,sans-serif; font-size:14px; line-height:21px; text-align:left; background-color:rgb(250,247,239)\"><br \/>\n   android\u7aef\u7684socket\u76f8\u5173\u4ee3\u7801(\u73b0\u5b66\u73b0\u7528\uff0c\u5927\u5bb6\u89c1\u8c05\u3002\u3002)\uff1a<br \/>\n  <\/span><br \/>\n  <\/p>\n<p style=\"margin-top:5px; margin-right:auto; margin-bottom:5px; margin-left:auto; padding-top:0px; padding-bottom:0px; color:rgb(57,57,57); font-family:verdana,'ms song',Arial,Helvetica,sans-serif; font-size:14px; line-height:21px; text-align:left; background-color:rgb(250,247,239)\">\n   <span style=\"margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; background-color:rgb(255,255,255); color:rgb(255,0,0)\"><br \/>\n    <span style=\"margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; color:rgb(0,0,0)\"><br \/>\n     <span style=\"color:rgb(57,57,57); font-family:verdana,'ms song',Arial,Helvetica,sans-serif; font-size:14px; line-height:21px; text-align:left; background-color:rgb(250,247,239)\"><br \/>\n     <\/span><br \/>\n    <\/span><br \/>\n   <\/span>\n  <\/p>\n<pre><code class=\"language-java\">package com.android.baofengControl;\n\nimport java.io.BufferedWriter;\nimport java.io.IOException;\nimport java.io.OutputStreamWriter;\nimport java.io.PrintWriter;\nimport java.net.InetAddress;\nimport java.net.Socket;\nimport java.net.UnknownHostException;\nimport android.content.Context;\nimport android.widget.TextView;\n\npublic class Client {\n    Socket client;\n    PrintWriter out;\n    TextView txt;\n    Context context;\n    \n    public Client(TextView txt,Context context)\n    {\n        this.txt=txt;\n        this.context=context;\n    }\n    \n    \/\/\/\u5efa\u7acb\u8fde\u63a5\uff0c\u5e76\u4fdd\u6301\n    public void connectServer(String ip)\n    {\n        InetAddress serverAddress = null;\n        try {\n            serverAddress = InetAddress.getByName(ip);\n        } catch (UnknownHostException e) {\n            txt.setText(e.getLocalizedMessage()+txt.getText());\n            e.printStackTrace();\n        }\n        \n        try {\n            client=new Socket(serverAddress,12121);\n            out=new PrintWriter(new BufferedWriter(new OutputStreamWriter(client.getOutputStream())),true);\n        } catch (IOException e) {\n            txt.setText(e.getLocalizedMessage()+txt.getText());\n            e.printStackTrace();\n        }\n    }\n    \n\u3000\u3000\/\/\u53d1\u9001\u6d88\u606f\n    public void sendMsg(String msg) throws IOException\n    {\n        out.println(msg);\n    }\n    \n\u3000\u3000\/\/\u53d1\u9001over\u7ed3\u675f\u5b57\u7b26\uff0c\u7136\u540e\u65ad\u5f00\u8fde\u63a5\n    public void close()\n    {\n        out.println(\"over\");\n        out.close();\n        txt.setText(\"end\"+txt.getText());\n    }\n}<\/code><\/pre>\n<p><\/p>\n<p style=\"margin-top:5px; margin-right:auto; margin-bottom:5px; margin-left:auto; padding-top:0px; padding-bottom:0px; color:rgb(57,57,57); font-family:verdana,'ms song',Arial,Helvetica,sans-serif; font-size:14px; line-height:21px; text-align:left; background-color:rgb(250,247,239)\">\n   <span style=\"margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px\"><br \/>\n    \u4e09\uff0c\u6447\u6643\u624b\u673a\u63a7\u5236\u64ad\u653e<br \/>\n   <\/span>\n  <\/p>\n<p style=\"margin-top:5px; margin-right:auto; margin-bottom:5px; margin-left:auto; padding-top:0px; padding-bottom:0px; color:rgb(57,57,57); font-family:verdana,'ms song',Arial,Helvetica,sans-serif; font-size:14px; line-height:21px; text-align:left; background-color:rgb(250,247,239)\">\n   \u8fd9\u91cc\u4f7f\u7528\u4e86\u7f51\u4e0a\u5df2\u6709\u7684\u4ee3\u7801\uff0c\u7a0d\u52a0\u4fee\u6539\u3002\n  <\/p>\n<pre><code class=\"language-java\">package com.android.baofengControl;\n\nimport java.io.IOException;\nimport android.hardware.Sensor;\nimport android.hardware.SensorEvent;\nimport android.hardware.SensorEventListener;\nimport android.hardware.SensorManager;\n\npublic class MySensor {\n    SensorManager sensorManager;\n    Client client;\n    \n    \/\/\/\u5f00\u59cb\u76d1\u542c\u52a0\u901f\u4f20\u611f\u5668\n    public void Listen(SensorManager sensorManager,Client client)\n    {\n        this.client=client;\u3000\u3000\/\/\u53d1\u9001\u8054\u7f51\u6570\u636e\u7684\u7c7b\u3002\n        this.sensorManager=sensorManager;\n        Sensor sensor=sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);\n        sensorManager.registerListener(sensorEventListener, sensor, SensorManager.SENSOR_DELAY_NORMAL);\n    }\n    \n    SensorEventListener sensorEventListener =new SensorEventListener(){\n\n        long lastUpdate,lastShakeTime = 0;\n        float x,y,last_x = 0,last_y = 0;\n        static final int SHAKE_THRESHOLD = 750;\n        \n        public void onAccuracyChanged(android.hardware.Sensor arg0, int arg1) {\n            \/\/ TODO Auto-generated method stub\n            \n        }\n\n        public void onSensorChanged(SensorEvent e) {\n            long curTime = System.currentTimeMillis();\n            \/\/ detect per 100 Millis\n            if ((curTime - lastUpdate) &gt; 100) {\n                long diffTime = (curTime - lastUpdate);\n                lastUpdate = curTime;\n                \/\/\u8fd9\u91cc\u505a\u4e86\u7b80\u5316\uff0c\u6ca1\u6709\u7528z\u7684\u6570\u636e\n                x = e.values[SensorManager.DATA_X];\n                y = e.values[SensorManager.DATA_Y];\n                \/\/z = Math.abs(values[SensorManager.DATA_Z]);\n                float acceChangeRate = 0;\/\/ = Math.abs(x+y - last_x - last_y) \/ diffTime * 1000;  \n                if(last_x != 0) acceChangeRate = Math.abs(x+y - last_x - last_y) \/ diffTime * 10000;\n                 \/\/\u8fd9\u91cc\u8bbe\u5b9a2\u4e2a\u9600\u503c\uff0c\u4e00\u4e2a\u662f\u52a0\u901f\u5ea6\u7684\uff0c\u4e00\u4e2a\u662fshake\u7684\u95f4\u9694\u65f6\u95f4\u7684\n                if (acceChangeRate &gt; SHAKE_THRESHOLD &amp;&amp; curTime - lastShakeTime &gt; 1000) {\n\n                    lastShakeTime = curTime;\n                    try {\n                        client.sendMsg(\"stsp\");    \/\/\u53d1\u9001\u6d88\u606f\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002\n                    } catch (IOException e1) {\n                        e1.printStackTrace();\n                    }\n                }\n                last_x = x;\n                last_y = y;\n            }\n        }};\n}<\/code><\/pre>\n<p>\n  <span style=\"color:rgb(57,57,57); font-family:verdana,'ms song',Arial,Helvetica,sans-serif; font-size:14px; line-height:21px; text-align:left; background-color:rgb(250,247,239)\"><br \/>\n   \u6700\u540e\uff0c\u8fd0\u884c\u7a0b\u5e8f\uff0c\u7136\u540e\u53ef\u4ee5\u6309home\u952e\u9690\u85cf\uff0c\u53ea\u8981\u8981\u4e00\u4e0b\u624b\u673a\u5c31\u53ef\u4ee5\u63a7\u5236\u66b4\u98ce\u4e86\u3002\u6211\u7684\u662f2.3.7\u7cfb\u7edf\uff0c\u6d4b\u8bd5\u901a\u8fc7\u3002<br \/>\n  <\/span><br \/>\n  \n <\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>http:\/\/www.cnblogs.com\/fmnisme\/archive\/2012\/02\/24\/23632 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":215,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-551","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-11"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>android\u9065\u63a7\u5668\uff1a\u63a7\u5236\u7535\u8111\u4e0a\u7684\u66b4\u98ce\u5f71\u97f3\u64ad\u653e(C#\u4f5c\u4e3a\u670d\u52a1\u7aef) - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.wunen.com\/index.php\/2025\/04\/05\/android\u9065\u63a7\u5668\uff1a\u63a7\u5236\u7535\u8111\u4e0a\u7684\u66b4\u98ce\u5f71\u97f3\u64ad\u653ec\u4f5c\u4e3a\u670d\u52a1\u7aef\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"android\u9065\u63a7\u5668\uff1a\u63a7\u5236\u7535\u8111\u4e0a\u7684\u66b4\u98ce\u5f71\u97f3\u64ad\u653e(C#\u4f5c\u4e3a\u670d\u52a1\u7aef) - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\" \/>\n<meta property=\"og:description\" content=\"http:\/\/www.cnblogs.com\/fmnisme\/archive\/2012\/02\/24\/23632 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.wunen.com\/index.php\/2025\/04\/05\/android\u9065\u63a7\u5668\uff1a\u63a7\u5236\u7535\u8111\u4e0a\u7684\u66b4\u98ce\u5f71\u97f3\u64ad\u653ec\u4f5c\u4e3a\u670d\u52a1\u7aef\/\" \/>\n<meta property=\"og:site_name\" content=\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-05T04:00:30+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"260\" \/>\n\t<meta property=\"og:image:height\" content=\"180\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin@wunen\" \/>\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@wunen\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/05\/android%e9%81%a5%e6%8e%a7%e5%99%a8%ef%bc%9a%e6%8e%a7%e5%88%b6%e7%94%b5%e8%84%91%e4%b8%8a%e7%9a%84%e6%9a%b4%e9%a3%8e%e5%bd%b1%e9%9f%b3%e6%92%ad%e6%94%bec%e4%bd%9c%e4%b8%ba%e6%9c%8d%e5%8a%a1%e7%ab%af\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/05\/android%e9%81%a5%e6%8e%a7%e5%99%a8%ef%bc%9a%e6%8e%a7%e5%88%b6%e7%94%b5%e8%84%91%e4%b8%8a%e7%9a%84%e6%9a%b4%e9%a3%8e%e5%bd%b1%e9%9f%b3%e6%92%ad%e6%94%bec%e4%bd%9c%e4%b8%ba%e6%9c%8d%e5%8a%a1%e7%ab%af\/\"},\"author\":{\"name\":\"admin@wunen\",\"@id\":\"http:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8\"},\"headline\":\"android\u9065\u63a7\u5668\uff1a\u63a7\u5236\u7535\u8111\u4e0a\u7684\u66b4\u98ce\u5f71\u97f3\u64ad\u653e(C#\u4f5c\u4e3a\u670d\u52a1\u7aef)\",\"datePublished\":\"2025-04-05T04:00:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/05\/android%e9%81%a5%e6%8e%a7%e5%99%a8%ef%bc%9a%e6%8e%a7%e5%88%b6%e7%94%b5%e8%84%91%e4%b8%8a%e7%9a%84%e6%9a%b4%e9%a3%8e%e5%bd%b1%e9%9f%b3%e6%92%ad%e6%94%bec%e4%bd%9c%e4%b8%ba%e6%9c%8d%e5%8a%a1%e7%ab%af\/\"},\"wordCount\":53,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/www.wunen.com\/#organization\"},\"image\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/05\/android%e9%81%a5%e6%8e%a7%e5%99%a8%ef%bc%9a%e6%8e%a7%e5%88%b6%e7%94%b5%e8%84%91%e4%b8%8a%e7%9a%84%e6%9a%b4%e9%a3%8e%e5%bd%b1%e9%9f%b3%e6%92%ad%e6%94%bec%e4%bd%9c%e4%b8%ba%e6%9c%8d%e5%8a%a1%e7%ab%af\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"articleSection\":[\"\u5f71\u97f3\u64ad\u653e\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/www.wunen.com\/index.php\/2025\/04\/05\/android%e9%81%a5%e6%8e%a7%e5%99%a8%ef%bc%9a%e6%8e%a7%e5%88%b6%e7%94%b5%e8%84%91%e4%b8%8a%e7%9a%84%e6%9a%b4%e9%a3%8e%e5%bd%b1%e9%9f%b3%e6%92%ad%e6%94%bec%e4%bd%9c%e4%b8%ba%e6%9c%8d%e5%8a%a1%e7%ab%af\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/05\/android%e9%81%a5%e6%8e%a7%e5%99%a8%ef%bc%9a%e6%8e%a7%e5%88%b6%e7%94%b5%e8%84%91%e4%b8%8a%e7%9a%84%e6%9a%b4%e9%a3%8e%e5%bd%b1%e9%9f%b3%e6%92%ad%e6%94%bec%e4%bd%9c%e4%b8%ba%e6%9c%8d%e5%8a%a1%e7%ab%af\/\",\"url\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/05\/android%e9%81%a5%e6%8e%a7%e5%99%a8%ef%bc%9a%e6%8e%a7%e5%88%b6%e7%94%b5%e8%84%91%e4%b8%8a%e7%9a%84%e6%9a%b4%e9%a3%8e%e5%bd%b1%e9%9f%b3%e6%92%ad%e6%94%bec%e4%bd%9c%e4%b8%ba%e6%9c%8d%e5%8a%a1%e7%ab%af\/\",\"name\":\"android\u9065\u63a7\u5668\uff1a\u63a7\u5236\u7535\u8111\u4e0a\u7684\u66b4\u98ce\u5f71\u97f3\u64ad\u653e(C#\u4f5c\u4e3a\u670d\u52a1\u7aef) - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\",\"isPartOf\":{\"@id\":\"http:\/\/www.wunen.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/05\/android%e9%81%a5%e6%8e%a7%e5%99%a8%ef%bc%9a%e6%8e%a7%e5%88%b6%e7%94%b5%e8%84%91%e4%b8%8a%e7%9a%84%e6%9a%b4%e9%a3%8e%e5%bd%b1%e9%9f%b3%e6%92%ad%e6%94%bec%e4%bd%9c%e4%b8%ba%e6%9c%8d%e5%8a%a1%e7%ab%af\/#primaryimage\"},\"image\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/05\/android%e9%81%a5%e6%8e%a7%e5%99%a8%ef%bc%9a%e6%8e%a7%e5%88%b6%e7%94%b5%e8%84%91%e4%b8%8a%e7%9a%84%e6%9a%b4%e9%a3%8e%e5%bd%b1%e9%9f%b3%e6%92%ad%e6%94%bec%e4%bd%9c%e4%b8%ba%e6%9c%8d%e5%8a%a1%e7%ab%af\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"datePublished\":\"2025-04-05T04:00:30+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/05\/android%e9%81%a5%e6%8e%a7%e5%99%a8%ef%bc%9a%e6%8e%a7%e5%88%b6%e7%94%b5%e8%84%91%e4%b8%8a%e7%9a%84%e6%9a%b4%e9%a3%8e%e5%bd%b1%e9%9f%b3%e6%92%ad%e6%94%bec%e4%bd%9c%e4%b8%ba%e6%9c%8d%e5%8a%a1%e7%ab%af\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.wunen.com\/index.php\/2025\/04\/05\/android%e9%81%a5%e6%8e%a7%e5%99%a8%ef%bc%9a%e6%8e%a7%e5%88%b6%e7%94%b5%e8%84%91%e4%b8%8a%e7%9a%84%e6%9a%b4%e9%a3%8e%e5%bd%b1%e9%9f%b3%e6%92%ad%e6%94%bec%e4%bd%9c%e4%b8%ba%e6%9c%8d%e5%8a%a1%e7%ab%af\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/05\/android%e9%81%a5%e6%8e%a7%e5%99%a8%ef%bc%9a%e6%8e%a7%e5%88%b6%e7%94%b5%e8%84%91%e4%b8%8a%e7%9a%84%e6%9a%b4%e9%a3%8e%e5%bd%b1%e9%9f%b3%e6%92%ad%e6%94%bec%e4%bd%9c%e4%b8%ba%e6%9c%8d%e5%8a%a1%e7%ab%af\/#primaryimage\",\"url\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"contentUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"width\":260,\"height\":180},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/05\/android%e9%81%a5%e6%8e%a7%e5%99%a8%ef%bc%9a%e6%8e%a7%e5%88%b6%e7%94%b5%e8%84%91%e4%b8%8a%e7%9a%84%e6%9a%b4%e9%a3%8e%e5%bd%b1%e9%9f%b3%e6%92%ad%e6%94%bec%e4%bd%9c%e4%b8%ba%e6%9c%8d%e5%8a%a1%e7%ab%af\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"http:\/\/www.wunen.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"android\u9065\u63a7\u5668\uff1a\u63a7\u5236\u7535\u8111\u4e0a\u7684\u66b4\u98ce\u5f71\u97f3\u64ad\u653e(C#\u4f5c\u4e3a\u670d\u52a1\u7aef)\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.wunen.com\/#website\",\"url\":\"http:\/\/www.wunen.com\/\",\"name\":\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\",\"description\":\"\u8f6f\u4ef6\u8d44\u8baf\u6765\u7269\u5ae9\",\"publisher\":{\"@id\":\"http:\/\/www.wunen.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.wunen.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Organization\",\"@id\":\"http:\/\/www.wunen.com\/#organization\",\"name\":\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\",\"url\":\"http:\/\/www.wunen.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"http:\/\/www.wunen.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png\",\"contentUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png\",\"width\":1024,\"height\":1024,\"caption\":\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\"},\"image\":{\"@id\":\"http:\/\/www.wunen.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"http:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8\",\"name\":\"admin@wunen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"http:\/\/www.wunen.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g\",\"caption\":\"admin@wunen\"},\"sameAs\":[\"http:\/\/www.wunen.com\"],\"url\":\"http:\/\/www.wunen.com\/index.php\/author\/adminwunen\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"android\u9065\u63a7\u5668\uff1a\u63a7\u5236\u7535\u8111\u4e0a\u7684\u66b4\u98ce\u5f71\u97f3\u64ad\u653e(C#\u4f5c\u4e3a\u670d\u52a1\u7aef) - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","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":"http:\/\/www.wunen.com\/index.php\/2025\/04\/05\/android\u9065\u63a7\u5668\uff1a\u63a7\u5236\u7535\u8111\u4e0a\u7684\u66b4\u98ce\u5f71\u97f3\u64ad\u653ec\u4f5c\u4e3a\u670d\u52a1\u7aef\/","og_locale":"zh_CN","og_type":"article","og_title":"android\u9065\u63a7\u5668\uff1a\u63a7\u5236\u7535\u8111\u4e0a\u7684\u66b4\u98ce\u5f71\u97f3\u64ad\u653e(C#\u4f5c\u4e3a\u670d\u52a1\u7aef) - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","og_description":"http:\/\/www.cnblogs.com\/fmnisme\/archive\/2012\/02\/24\/23632 [&hellip;]","og_url":"http:\/\/www.wunen.com\/index.php\/2025\/04\/05\/android\u9065\u63a7\u5668\uff1a\u63a7\u5236\u7535\u8111\u4e0a\u7684\u66b4\u98ce\u5f71\u97f3\u64ad\u653ec\u4f5c\u4e3a\u670d\u52a1\u7aef\/","og_site_name":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","article_published_time":"2025-04-05T04:00:30+00:00","og_image":[{"width":260,"height":180,"url":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","type":"image\/jpeg"}],"author":"admin@wunen","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin@wunen","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/05\/android%e9%81%a5%e6%8e%a7%e5%99%a8%ef%bc%9a%e6%8e%a7%e5%88%b6%e7%94%b5%e8%84%91%e4%b8%8a%e7%9a%84%e6%9a%b4%e9%a3%8e%e5%bd%b1%e9%9f%b3%e6%92%ad%e6%94%bec%e4%bd%9c%e4%b8%ba%e6%9c%8d%e5%8a%a1%e7%ab%af\/#article","isPartOf":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/05\/android%e9%81%a5%e6%8e%a7%e5%99%a8%ef%bc%9a%e6%8e%a7%e5%88%b6%e7%94%b5%e8%84%91%e4%b8%8a%e7%9a%84%e6%9a%b4%e9%a3%8e%e5%bd%b1%e9%9f%b3%e6%92%ad%e6%94%bec%e4%bd%9c%e4%b8%ba%e6%9c%8d%e5%8a%a1%e7%ab%af\/"},"author":{"name":"admin@wunen","@id":"http:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8"},"headline":"android\u9065\u63a7\u5668\uff1a\u63a7\u5236\u7535\u8111\u4e0a\u7684\u66b4\u98ce\u5f71\u97f3\u64ad\u653e(C#\u4f5c\u4e3a\u670d\u52a1\u7aef)","datePublished":"2025-04-05T04:00:30+00:00","mainEntityOfPage":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/05\/android%e9%81%a5%e6%8e%a7%e5%99%a8%ef%bc%9a%e6%8e%a7%e5%88%b6%e7%94%b5%e8%84%91%e4%b8%8a%e7%9a%84%e6%9a%b4%e9%a3%8e%e5%bd%b1%e9%9f%b3%e6%92%ad%e6%94%bec%e4%bd%9c%e4%b8%ba%e6%9c%8d%e5%8a%a1%e7%ab%af\/"},"wordCount":53,"commentCount":0,"publisher":{"@id":"http:\/\/www.wunen.com\/#organization"},"image":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/05\/android%e9%81%a5%e6%8e%a7%e5%99%a8%ef%bc%9a%e6%8e%a7%e5%88%b6%e7%94%b5%e8%84%91%e4%b8%8a%e7%9a%84%e6%9a%b4%e9%a3%8e%e5%bd%b1%e9%9f%b3%e6%92%ad%e6%94%bec%e4%bd%9c%e4%b8%ba%e6%9c%8d%e5%8a%a1%e7%ab%af\/#primaryimage"},"thumbnailUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","articleSection":["\u5f71\u97f3\u64ad\u653e"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/www.wunen.com\/index.php\/2025\/04\/05\/android%e9%81%a5%e6%8e%a7%e5%99%a8%ef%bc%9a%e6%8e%a7%e5%88%b6%e7%94%b5%e8%84%91%e4%b8%8a%e7%9a%84%e6%9a%b4%e9%a3%8e%e5%bd%b1%e9%9f%b3%e6%92%ad%e6%94%bec%e4%bd%9c%e4%b8%ba%e6%9c%8d%e5%8a%a1%e7%ab%af\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/05\/android%e9%81%a5%e6%8e%a7%e5%99%a8%ef%bc%9a%e6%8e%a7%e5%88%b6%e7%94%b5%e8%84%91%e4%b8%8a%e7%9a%84%e6%9a%b4%e9%a3%8e%e5%bd%b1%e9%9f%b3%e6%92%ad%e6%94%bec%e4%bd%9c%e4%b8%ba%e6%9c%8d%e5%8a%a1%e7%ab%af\/","url":"http:\/\/www.wunen.com\/index.php\/2025\/04\/05\/android%e9%81%a5%e6%8e%a7%e5%99%a8%ef%bc%9a%e6%8e%a7%e5%88%b6%e7%94%b5%e8%84%91%e4%b8%8a%e7%9a%84%e6%9a%b4%e9%a3%8e%e5%bd%b1%e9%9f%b3%e6%92%ad%e6%94%bec%e4%bd%9c%e4%b8%ba%e6%9c%8d%e5%8a%a1%e7%ab%af\/","name":"android\u9065\u63a7\u5668\uff1a\u63a7\u5236\u7535\u8111\u4e0a\u7684\u66b4\u98ce\u5f71\u97f3\u64ad\u653e(C#\u4f5c\u4e3a\u670d\u52a1\u7aef) - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","isPartOf":{"@id":"http:\/\/www.wunen.com\/#website"},"primaryImageOfPage":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/05\/android%e9%81%a5%e6%8e%a7%e5%99%a8%ef%bc%9a%e6%8e%a7%e5%88%b6%e7%94%b5%e8%84%91%e4%b8%8a%e7%9a%84%e6%9a%b4%e9%a3%8e%e5%bd%b1%e9%9f%b3%e6%92%ad%e6%94%bec%e4%bd%9c%e4%b8%ba%e6%9c%8d%e5%8a%a1%e7%ab%af\/#primaryimage"},"image":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/05\/android%e9%81%a5%e6%8e%a7%e5%99%a8%ef%bc%9a%e6%8e%a7%e5%88%b6%e7%94%b5%e8%84%91%e4%b8%8a%e7%9a%84%e6%9a%b4%e9%a3%8e%e5%bd%b1%e9%9f%b3%e6%92%ad%e6%94%bec%e4%bd%9c%e4%b8%ba%e6%9c%8d%e5%8a%a1%e7%ab%af\/#primaryimage"},"thumbnailUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","datePublished":"2025-04-05T04:00:30+00:00","breadcrumb":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/05\/android%e9%81%a5%e6%8e%a7%e5%99%a8%ef%bc%9a%e6%8e%a7%e5%88%b6%e7%94%b5%e8%84%91%e4%b8%8a%e7%9a%84%e6%9a%b4%e9%a3%8e%e5%bd%b1%e9%9f%b3%e6%92%ad%e6%94%bec%e4%bd%9c%e4%b8%ba%e6%9c%8d%e5%8a%a1%e7%ab%af\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.wunen.com\/index.php\/2025\/04\/05\/android%e9%81%a5%e6%8e%a7%e5%99%a8%ef%bc%9a%e6%8e%a7%e5%88%b6%e7%94%b5%e8%84%91%e4%b8%8a%e7%9a%84%e6%9a%b4%e9%a3%8e%e5%bd%b1%e9%9f%b3%e6%92%ad%e6%94%bec%e4%bd%9c%e4%b8%ba%e6%9c%8d%e5%8a%a1%e7%ab%af\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/05\/android%e9%81%a5%e6%8e%a7%e5%99%a8%ef%bc%9a%e6%8e%a7%e5%88%b6%e7%94%b5%e8%84%91%e4%b8%8a%e7%9a%84%e6%9a%b4%e9%a3%8e%e5%bd%b1%e9%9f%b3%e6%92%ad%e6%94%bec%e4%bd%9c%e4%b8%ba%e6%9c%8d%e5%8a%a1%e7%ab%af\/#primaryimage","url":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","contentUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","width":260,"height":180},{"@type":"BreadcrumbList","@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/05\/android%e9%81%a5%e6%8e%a7%e5%99%a8%ef%bc%9a%e6%8e%a7%e5%88%b6%e7%94%b5%e8%84%91%e4%b8%8a%e7%9a%84%e6%9a%b4%e9%a3%8e%e5%bd%b1%e9%9f%b3%e6%92%ad%e6%94%bec%e4%bd%9c%e4%b8%ba%e6%9c%8d%e5%8a%a1%e7%ab%af\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/www.wunen.com\/"},{"@type":"ListItem","position":2,"name":"android\u9065\u63a7\u5668\uff1a\u63a7\u5236\u7535\u8111\u4e0a\u7684\u66b4\u98ce\u5f71\u97f3\u64ad\u653e(C#\u4f5c\u4e3a\u670d\u52a1\u7aef)"}]},{"@type":"WebSite","@id":"http:\/\/www.wunen.com\/#website","url":"http:\/\/www.wunen.com\/","name":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","description":"\u8f6f\u4ef6\u8d44\u8baf\u6765\u7269\u5ae9","publisher":{"@id":"http:\/\/www.wunen.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.wunen.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":"Organization","@id":"http:\/\/www.wunen.com\/#organization","name":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","url":"http:\/\/www.wunen.com\/","logo":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"http:\/\/www.wunen.com\/#\/schema\/logo\/image\/","url":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png","contentUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png","width":1024,"height":1024,"caption":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51"},"image":{"@id":"http:\/\/www.wunen.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"http:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8","name":"admin@wunen","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"http:\/\/www.wunen.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g","caption":"admin@wunen"},"sameAs":["http:\/\/www.wunen.com"],"url":"http:\/\/www.wunen.com\/index.php\/author\/adminwunen\/"}]}},"_links":{"self":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/posts\/551","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/comments?post=551"}],"version-history":[{"count":0,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/posts\/551\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/media\/215"}],"wp:attachment":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/media?parent=551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/categories?post=551"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/tags?post=551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}