{"id":2224,"date":"2025-05-14T06:00:06","date_gmt":"2025-05-13T22:00:06","guid":{"rendered":"https:\/\/www.wunen.com\/index.php\/2025\/05\/14\/android%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%e5%bc%80%e5%8f%91\/"},"modified":"2025-05-14T06:00:06","modified_gmt":"2025-05-13T22:00:06","slug":"android%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%e5%bc%80%e5%8f%91","status":"publish","type":"post","link":"http:\/\/www.wunen.com\/index.php\/2025\/05\/14\/android%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%e5%bc%80%e5%8f%91\/","title":{"rendered":"Android\u52a8\u6001\u58c1\u7eb8\u5f00\u53d1"},"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 atom-one-dark\" id=\"content_views\">\n<div class=\"content\" id=\"articleContent\">\n<p>\n    \u9996\u5148\u81ea\u5df1\u5199\u4e86\u4e2a\u63a5\u53e3\uff0c\u8fd9\u4e2a\u53ef\u4ee5\u4e0d\u8981\n   <\/p>\n<pre><code class=\"language-java\"><code>public\u00a0interface\u00a0LiveWallpaper\u00a0extends\u00a0Runnable\u00a0{\n\t\n\tpublic\u00a0void\u00a0onCreate(SurfaceHolder\u00a0surfaceHolder,\u00a0Context\u00a0context);\n\t\n\tpublic\u00a0void\u00a0onResume();\n\t\n\tpublic\u00a0void\u00a0onPause();\n\t\n\tpublic\u00a0void\u00a0onStop();\n\t\n\tpublic\u00a0void\u00a0onSizeChanged(int\u00a0width,\u00a0int\u00a0height);\n\t\n\tpublic\u00a0void\u00a0onTouchEvent(MotionEvent\u00a0event);\n}<\/code><\/code><\/pre>\n<p>\n    \u7136\u540e\u5199\u4e2a\u7b80\u5355\u7684\u58c1\u7eb8\u7ed8\u5236\u7c7b\n   <\/p>\n<pre><code class=\"language-java\"><code>public\u00a0class\u00a0SimpleLiveWallpaper\u00a0implements\u00a0LiveWallpaper\u00a0{\n\t\n\tprivate\u00a0SurfaceHolder\u00a0surfaceHolder;\n\tprivate\u00a0Context\u00a0context;\n\t\n\t\/**\u00a0State\u00a0*\/\n\tprivate\u00a0boolean\u00a0isSleep;\n\tprivate\u00a0boolean\u00a0isRunning;\n\t\n\t\/**\u00a0Dimensions\u00a0*\/\n\tprivate\u00a0int\u00a0width;\n\tprivate\u00a0int\u00a0height;\n\t\n\t\/**\u00a0Time\u00a0tracking\u00a0*\/\n\tprivate\u00a0long\u00a0lastTime;\n\t\n\tpublic\u00a0int\u00a0DEFUALT_UPDATE_FPS\u00a0=\u00a01000;\n\tprivate\u00a0int\u00a0updateFPS\u00a0=\u00a0DEFUALT_UPDATE_FPS;\n\t\n\tprivate\u00a0SharedPreferences\u00a0spf;\n\tprivate\u00a0Bitmap\u00a0bg;\n\t\n\t@Override\n\tpublic\u00a0void\u00a0onCreate(SurfaceHolder\u00a0surfaceHolder,\u00a0Context\u00a0context)\u00a0{\n\t\t\/\/\u00a0TODO\u00a0Auto-generated\u00a0method\u00a0stub\n\t\tthis.surfaceHolder\u00a0=\u00a0surfaceHolder;\n\t\tthis.context\u00a0=\u00a0context;\n\t\tthis.isSleep\u00a0=\u00a0true;\n\t\t\n\t\tspf\u00a0=\u00a0context\n\t\t\t\t.getSharedPreferences(\n\t\t\t\t\t\tWallPaperSettingActivity.WALL_PAPER_PREFS,\n\t\t\t\t\t\tContext.MODE_PRIVATE);\n\t\tpaint\u00a0=\u00a0new\u00a0Paint();\n\t\tpaint.setFlags(Paint.ANTI_ALIAS_FLAG);\n\t\tpaint.setTextSize(20);\n\t\t\n\t\tbg\u00a0=\u00a0KDisplayUtil.drawable2Bitmap(WallpaperManager.getInstance(context)\n\t\t\t\t.getDrawable());\n\t\tmatrix\u00a0=\u00a0new\u00a0Matrix();\n\t}\n\t\n\tpublic\u00a0void\u00a0onResume()\u00a0{\n\t\t\n\t\tupdateFPS\u00a0=\u00a0spf.getInt(WallPaperSettingActivity.UPDATE_FPS,\n\t\t\t\tDEFUALT_UPDATE_FPS);\n\t\tthis.isSleep\u00a0=\u00a0false;\n\t\tsynchronized\u00a0(this)\u00a0{\n\t\t\tthis.notify();\n\t\t}\n\t}\n\t\n\tpublic\u00a0void\u00a0onPause()\u00a0{\n\t\tthis.isSleep\u00a0=\u00a0true;\n\t\tsynchronized\u00a0(this)\u00a0{\n\t\t\tthis.notify();\n\t\t}\n\t}\n\t\n\tpublic\u00a0void\u00a0onStop()\u00a0{\n\t\tthis.isRunning\u00a0=\u00a0false;\n\t\tsynchronized\u00a0(this)\u00a0{\n\t\t\tthis.notify();\n\t\t}\n\t}\n\t\n\tpublic\u00a0void\u00a0onSurfaceSize(int\u00a0width,\u00a0int\u00a0height)\u00a0{\n\t\tthis.width\u00a0=\u00a0width;\n\t\tthis.height\u00a0=\u00a0height;\n\t\tsynchronized\u00a0(this)\u00a0{\n\t\t\tthis.notify();\n\t\t}\n\t}\n\t\n\tpublic\u00a0void\u00a0onTouchEvent(MotionEvent\u00a0event)\u00a0{\n\n\t}\n\t\n\tprivate\u00a0int\u00a0x;\n\tprivate\u00a0int\u00a0y;\n\tprivate\u00a0Paint\u00a0paint;\n\tString\u00a0msessge\u00a0=\u00a0\"Hello\u00a0WallPaper\";\n\t\n\tprotected\u00a0void\u00a0updateLogic()\u00a0{\n\t\tx\u00a0=\u00a0(int)\u00a0(Math.random()\u00a0*\u00a0this.width);\n\t\ty\u00a0=\u00a0(int)\u00a0(Math.random()\u00a0*\u00a0this.height);\n\t\t\n\t\tif\u00a0(x\u00a0&gt;\u00a0y)\u00a0{\n\t\t\tpaint.setColor(Color.RED);\n\t\t}\u00a0else\u00a0{\n\t\t\tpaint.setColor(Color.BLUE);\n\t\t}\n\t\t\n\t\tmatrix.reset();\n\t\tmatrix.setRotate(30,\u00a0x,\u00a0y);\n\t}\n\t\n\tprivate\u00a0Matrix\u00a0matrix;\n\t\n\tprotected\u00a0void\u00a0updateDraw(Canvas\u00a0canvas)\u00a0{\n\t\t\n\t\tpaint.setXfermode(new\u00a0PorterDuffXfermode(Mode.CLEAR));\n\t\tcanvas.drawPaint(paint);\n\t\tpaint.setXfermode(new\u00a0PorterDuffXfermode(Mode.SRC));\n\t\t\n\t\tcanvas.save();\n\t\tcanvas.setMatrix(matrix);\n\t\tcanvas.drawBitmap(bg,\u00a00,\u00a00,\u00a0paint);\n\t\tcanvas.restore();\n\t\tcanvas.drawText(msessge,\u00a0x,\u00a0y,\u00a0paint);\n\t}\n\t\n\t@Override\n\tpublic\u00a0void\u00a0run()\u00a0{\n\t\t\/\/\u00a0TODO\u00a0Auto-generated\u00a0method\u00a0stub\n\t\tthis.isRunning\u00a0=\u00a0true;\n\t\tCanvas\u00a0canvas\u00a0=\u00a0null;\n\t\twhile\u00a0(this.isRunning)\u00a0{\n\t\t\tif\u00a0(System.currentTimeMillis()\u00a0-\u00a0lastTime\u00a0&gt;\u00a0updateFPS)\u00a0{\n\t\t\t\tLogUtils.e(\"isDraw\");\n\t\t\t\ttry\u00a0{\n\t\t\t\t\tcanvas\u00a0=\u00a0this.surfaceHolder.lockCanvas(null);\n\t\t\t\t\tsynchronized\u00a0(this.surfaceHolder)\u00a0{\n\t\t\t\t\t\tupdateLogic();\n\t\t\t\t\t\tupdateDraw(canvas);\n\t\t\t\t\t\tlastTime\u00a0=\u00a0System.currentTimeMillis();\n\t\t\t\t\t}\n\t\t\t\t}\u00a0finally\u00a0{\n\t\t\t\t\tif\u00a0(canvas\u00a0!=\u00a0null)\u00a0{\n\t\t\t\t\t\tthis.surfaceHolder.unlockCanvasAndPost(canvas);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tsynchronized\u00a0(this)\u00a0{\n\t\t\t\tif\u00a0(this.isSleep)\u00a0{\n\t\t\t\t\ttry\u00a0{\n\t\t\t\t\t\twait();\n\t\t\t\t\t}\u00a0catch\u00a0(Exception\u00a0e)\u00a0{\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}\n\t\n\t@Override\n\tpublic\u00a0void\u00a0onSizeChanged(int\u00a0width,\u00a0int\u00a0height)\u00a0{\n\t\t\/\/\u00a0TODO\u00a0Auto-generated\u00a0method\u00a0stub\n\t\tthis.width\u00a0=\u00a0width;\n\t\tthis.height\u00a0=\u00a0height;\n\t}\n}<\/code><\/code><\/pre>\n<p>\n    \u6700\u4e3b\u8981\u7684\u5c31\u662f\u8fd9\u4e2a\u58c1\u7eb8\u670d\u52a1<br \/>\n    \n   <\/p>\n<pre><code class=\"language-java\"><code>public\u00a0class\u00a0KLiveWallpaperService\u00a0extends\u00a0WallpaperService\u00a0{\n\t\n\t@Override\n\tpublic\u00a0Engine\u00a0onCreateEngine()\u00a0{\n\t\t\/\/\u00a0TODO\u00a0Auto-generated\u00a0method\u00a0stub\n\t\treturn\u00a0new\u00a0KEngine(new\u00a0SimpleLiveWallpaper());\n\t}\n\n\tpublic\u00a0class\u00a0KEngine\u00a0extends\u00a0Engine\u00a0{\n\t\t\n\t\tprivate\u00a0LiveWallpaper\u00a0liveWallpaper;\n\t\t\n\t\tpublic\u00a0KEngine(LiveWallpaper\u00a0liveWallpaper)\u00a0{\n\t\t\tsuper();\n\t\t\tthis.liveWallpaper\u00a0=\u00a0liveWallpaper;\n\t\t}\n\t\t\n\t\t@Override\n\t\tpublic\u00a0void\u00a0onCreate(SurfaceHolder\u00a0surfaceHolder)\u00a0{\n\t\t\t\/\/\u00a0TODO\u00a0Auto-generated\u00a0method\u00a0stub\n\t\t\tsuper.onCreate(surfaceHolder);\n\t\t\tif\u00a0(liveWallpaper\u00a0!=\u00a0null)\u00a0{\n\t\t\t\tliveWallpaper.onCreate(surfaceHolder,\u00a0getApplicationContext());\n\t\t\t\tsetTouchEventsEnabled(true);\n\t\t\t}\n\t\t}\n\t\t\n\t\t@Override\n\t\tpublic\u00a0void\u00a0onVisibilityChanged(boolean\u00a0visible)\u00a0{\n\t\t\t\/\/\u00a0TODO\u00a0Auto-generated\u00a0method\u00a0stub\n\t\t\tsuper.onVisibilityChanged(visible);\n\t\t\tif\u00a0(liveWallpaper\u00a0!=\u00a0null)\u00a0{\n\t\t\t\tif\u00a0(visible)\u00a0{\n\t\t\t\t\tliveWallpaper.onResume();\n\t\t\t\t}\u00a0else\u00a0{\n\t\t\t\t\tliveWallpaper.onPause();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t@Override\n\t\tpublic\u00a0void\u00a0onTouchEvent(MotionEvent\u00a0event)\u00a0{\n\t\t\t\/\/\u00a0TODO\u00a0Auto-generated\u00a0method\u00a0stub\n\t\t\tsuper.onTouchEvent(event);\n\t\t\tif\u00a0(liveWallpaper\u00a0!=\u00a0null)\u00a0{\n\t\t\t\t\u00a0liveWallpaper.onTouchEvent(event);\n\t\t\t}\n\t\t}\n\t\t\n\t\t@Override\n\t\tpublic\u00a0void\u00a0onSurfaceChanged(SurfaceHolder\u00a0holder,\u00a0int\u00a0format,\n\t\t\t\tint\u00a0width,\u00a0int\u00a0height)\u00a0{\n\t\t\t\/\/\u00a0TODO\u00a0Auto-generated\u00a0method\u00a0stub\n\t\t\tsuper.onSurfaceChanged(holder,\u00a0format,\u00a0width,\u00a0height);\n\t\t\tif\u00a0(liveWallpaper\u00a0!=\u00a0null)\u00a0{\n\t\t\t\tliveWallpaper.onSizeChanged(width,\u00a0height);\n\t\t\t}\n\t\t}\n\t\t\n\t\t@Override\n\t\tpublic\u00a0void\u00a0onSurfaceCreated(SurfaceHolder\u00a0holder)\u00a0{\n\t\t\t\/\/\u00a0TODO\u00a0Auto-generated\u00a0method\u00a0stub\n\t\t\tsuper.onSurfaceCreated(holder);\t\t\n\t\t\tif\u00a0(liveWallpaper\u00a0!=\u00a0null)\u00a0{\n\t\t\t\tnew\u00a0Thread(liveWallpaper).start();\n\t\t\t}\n\t\t}\n\t\t\n\t\t@Override\n\t\tpublic\u00a0void\u00a0onSurfaceDestroyed(SurfaceHolder\u00a0holder)\u00a0{\n\t\t\t\/\/\u00a0TODO\u00a0Auto-generated\u00a0method\u00a0stub\n\t\t\tsuper.onSurfaceDestroyed(holder);\n\t\t\tif\u00a0(liveWallpaper\u00a0!=\u00a0null)\u00a0{\n\t\t\t\tliveWallpaper.onStop();\n\t\t\t}\n\t\t}\n\t\t\n\t\t@Override\n\t\tpublic\u00a0void\u00a0onOffsetsChanged(float\u00a0xOffset,\u00a0float\u00a0yOffset,\n\t\t\t\tfloat\u00a0xOffsetStep,\u00a0float\u00a0yOffsetStep,\u00a0int\u00a0xPixelOffset,\n\t\t\t\tint\u00a0yPixelOffset)\u00a0{\n\t\t\t\/\/\u00a0TODO\u00a0Auto-generated\u00a0method\u00a0stub\n\t\t\tsuper.onOffsetsChanged(xOffset,\u00a0yOffset,\u00a0xOffsetStep,\u00a0yOffsetStep,\n\t\t\t\t\txPixelOffset,\u00a0yPixelOffset);\n\t\t}\n\t}\n}<\/code><\/code><\/pre>\n<p>\n    \u7136\u540e\u9700\u8981\u505a\u5982\u4e0b\u914d\u7f6e\uff0c\u51fa\u4e86name\u57fa\u672c\u662f\u56fa\u5b9a\u7684\u3002<br \/>\n    \n   <\/p>\n<pre class=\"brush:xml;toolbar: true; auto-links: false;\"><code>&lt;service\n\tandroid:name=\"org.k.demo.wallpaper.KLiveWallpaperService\"\n\tandroid:enabled=\"true\"\n\tandroid:icon=\"@drawable\/icon_head\"\n\tandroid:label=\"@string\/app_name\"\n\tandroid:permission=\"android.permission.BIND_WALLPAPER\"\u00a0&gt;\n\t&lt;intent-filter\u00a0android:priority=\"1\"\u00a0&gt;\n\t\t&lt;action\u00a0android:name=\"android.service.wallpaper.WallpaperService\"\u00a0\/&gt;\n\t&lt;\/intent-filter&gt;\n\n\t&lt;meta-data\n\t\tandroid:name=\"android.service.wallpaper\"\n\t\tandroid:resource=\"@xml\/live_wall_paper\"\u00a0\/&gt;\n&lt;\/service&gt;\n\n&lt;!--\u5982\u679c\u9700\u8981\u505a\u8bbe\u7f6e\u9009\u9879\u00a0--&gt;\n&lt;activity\n\tandroid:name=\"org.k.demo.wallpaper.WallPaperSettingActivity\"\n\tandroid:exported=\"true\"\n\tandroid:label=\"@string\/label_wall_paper_setting\"\u00a0&gt;\n&lt;\/activity&gt;<\/code><\/pre>\n<p>\n    \u8d44\u6e90res\/xml\uff1alive_wall_paper.xml\n   <\/p>\n<pre class=\"brush:xml;toolbar: true; auto-links: false;\"><code>&lt;?xml\u00a0version=\"1.0\"\u00a0encoding=\"utf-8\"?&gt;\n&lt;wallpaper\u00a0xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\"\n\u00a0\u00a0\u00a0\u00a0android:author=\"@string\/author\"\n\u00a0\u00a0\u00a0\u00a0android:description=\"@string\/wallpaer_description\"\n\u00a0\u00a0\u00a0\u00a0android:settingsActivity=\"org.k.demo.wallpaper.WallPaperSettingActivity\"\u00a0\u3001\u3001\n\u00a0\u00a0\u00a0\u00a0android:thumbnail=\"@drawable\/ic_launcher\"\u00a0\/&gt;<\/code><\/pre>\n<p>\n    android:settingsActivity \u4e3a\u5bf9\u5e94\u7684\u8bbe\u7f6e\u754c\u9762\uff0c\u914d\u7f6e\u65f6\u6ce8\u610f\u9700\u8981\u00a0android:exported=&#8221;true&#8221;\uff0c\u5426\u5219\u65e0\u6cd5\u663e\u793a\u754c\u9762\u3002\n   <\/p>\n<p>\n    \n   <\/p>\n<p>\n    \u7136\u540e\u7136\u540e\u5c31\u6ca1\u6709\u4e86\u2026\u2026\n   <\/p>\n<p>\n    \n   <\/p>\n<\/p><\/div>\n<p>\n   \u8f6c\u8f7d\u4e8e:https:\/\/my.oschina.net\/u\/1770617\/blog\/339881\n  <\/p>\n<\/p><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148\u81ea\u5df1\u5199\u4e86\u4e2a\u63a5\u53e3\uff0c\u8fd9\u4e2a\u53ef\u4ee5\u4e0d\u8981 public\u00a0interface\u00a0LiveWallpaper\u00a0extends [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":215,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-2224","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-8"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Android\u52a8\u6001\u58c1\u7eb8\u5f00\u53d1 - \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\/05\/14\/android\u52a8\u6001\u58c1\u7eb8\u5f00\u53d1\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Android\u52a8\u6001\u58c1\u7eb8\u5f00\u53d1 - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\" \/>\n<meta property=\"og:description\" content=\"\u9996\u5148\u81ea\u5df1\u5199\u4e86\u4e2a\u63a5\u53e3\uff0c\u8fd9\u4e2a\u53ef\u4ee5\u4e0d\u8981 public\u00a0interface\u00a0LiveWallpaper\u00a0extends [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.wunen.com\/index.php\/2025\/05\/14\/android\u52a8\u6001\u58c1\u7eb8\u5f00\u53d1\/\" \/>\n<meta property=\"og:site_name\" content=\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-13T22:00:06+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=\"3 \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\/05\/14\/android%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%e5%bc%80%e5%8f%91\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/14\/android%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%e5%bc%80%e5%8f%91\/\"},\"author\":{\"name\":\"admin@wunen\",\"@id\":\"https:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8\"},\"headline\":\"Android\u52a8\u6001\u58c1\u7eb8\u5f00\u53d1\",\"datePublished\":\"2025-05-13T22:00:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/14\/android%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%e5%bc%80%e5%8f%91\/\"},\"wordCount\":19,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.wunen.com\/#organization\"},\"image\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/14\/android%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%e5%bc%80%e5%8f%91\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"articleSection\":[\"\u52a8\u6001\u58c1\u7eb8\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/www.wunen.com\/index.php\/2025\/05\/14\/android%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%e5%bc%80%e5%8f%91\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/14\/android%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%e5%bc%80%e5%8f%91\/\",\"url\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/14\/android%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%e5%bc%80%e5%8f%91\/\",\"name\":\"Android\u52a8\u6001\u58c1\u7eb8\u5f00\u53d1 - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\",\"isPartOf\":{\"@id\":\"https:\/\/www.wunen.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/14\/android%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%e5%bc%80%e5%8f%91\/#primaryimage\"},\"image\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/14\/android%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%e5%bc%80%e5%8f%91\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"datePublished\":\"2025-05-13T22:00:06+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/14\/android%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%e5%bc%80%e5%8f%91\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.wunen.com\/index.php\/2025\/05\/14\/android%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%e5%bc%80%e5%8f%91\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/14\/android%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%e5%bc%80%e5%8f%91\/#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\/05\/14\/android%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%e5%bc%80%e5%8f%91\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wunen.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Android\u52a8\u6001\u58c1\u7eb8\u5f00\u53d1\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wunen.com\/#website\",\"url\":\"https:\/\/www.wunen.com\/\",\"name\":\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\",\"description\":\"\u8f6f\u4ef6\u8d44\u8baf\u6765\u7269\u5ae9\",\"publisher\":{\"@id\":\"https:\/\/www.wunen.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wunen.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.wunen.com\/#organization\",\"name\":\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\",\"url\":\"https:\/\/www.wunen.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/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\":\"https:\/\/www.wunen.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8\",\"name\":\"admin@wunen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/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\u52a8\u6001\u58c1\u7eb8\u5f00\u53d1 - \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\/05\/14\/android\u52a8\u6001\u58c1\u7eb8\u5f00\u53d1\/","og_locale":"zh_CN","og_type":"article","og_title":"Android\u52a8\u6001\u58c1\u7eb8\u5f00\u53d1 - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","og_description":"\u9996\u5148\u81ea\u5df1\u5199\u4e86\u4e2a\u63a5\u53e3\uff0c\u8fd9\u4e2a\u53ef\u4ee5\u4e0d\u8981 public\u00a0interface\u00a0LiveWallpaper\u00a0extends [&hellip;]","og_url":"http:\/\/www.wunen.com\/index.php\/2025\/05\/14\/android\u52a8\u6001\u58c1\u7eb8\u5f00\u53d1\/","og_site_name":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","article_published_time":"2025-05-13T22:00:06+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":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/14\/android%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%e5%bc%80%e5%8f%91\/#article","isPartOf":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/14\/android%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%e5%bc%80%e5%8f%91\/"},"author":{"name":"admin@wunen","@id":"https:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8"},"headline":"Android\u52a8\u6001\u58c1\u7eb8\u5f00\u53d1","datePublished":"2025-05-13T22:00:06+00:00","mainEntityOfPage":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/14\/android%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%e5%bc%80%e5%8f%91\/"},"wordCount":19,"commentCount":0,"publisher":{"@id":"https:\/\/www.wunen.com\/#organization"},"image":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/14\/android%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%e5%bc%80%e5%8f%91\/#primaryimage"},"thumbnailUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","articleSection":["\u52a8\u6001\u58c1\u7eb8"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/www.wunen.com\/index.php\/2025\/05\/14\/android%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%e5%bc%80%e5%8f%91\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/14\/android%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%e5%bc%80%e5%8f%91\/","url":"http:\/\/www.wunen.com\/index.php\/2025\/05\/14\/android%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%e5%bc%80%e5%8f%91\/","name":"Android\u52a8\u6001\u58c1\u7eb8\u5f00\u53d1 - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","isPartOf":{"@id":"https:\/\/www.wunen.com\/#website"},"primaryImageOfPage":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/14\/android%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%e5%bc%80%e5%8f%91\/#primaryimage"},"image":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/14\/android%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%e5%bc%80%e5%8f%91\/#primaryimage"},"thumbnailUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","datePublished":"2025-05-13T22:00:06+00:00","breadcrumb":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/14\/android%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%e5%bc%80%e5%8f%91\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.wunen.com\/index.php\/2025\/05\/14\/android%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%e5%bc%80%e5%8f%91\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/14\/android%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%e5%bc%80%e5%8f%91\/#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\/05\/14\/android%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%e5%bc%80%e5%8f%91\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wunen.com\/"},{"@type":"ListItem","position":2,"name":"Android\u52a8\u6001\u58c1\u7eb8\u5f00\u53d1"}]},{"@type":"WebSite","@id":"https:\/\/www.wunen.com\/#website","url":"https:\/\/www.wunen.com\/","name":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","description":"\u8f6f\u4ef6\u8d44\u8baf\u6765\u7269\u5ae9","publisher":{"@id":"https:\/\/www.wunen.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wunen.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":"Organization","@id":"https:\/\/www.wunen.com\/#organization","name":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","url":"https:\/\/www.wunen.com\/","logo":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/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":"https:\/\/www.wunen.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8","name":"admin@wunen","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/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\/2224","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=2224"}],"version-history":[{"count":0,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/posts\/2224\/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=2224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/categories?post=2224"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/tags?post=2224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}