\u82f9\u679c\u5168\u80fd\u7b7e<\/a>\u4e66\u6587\u4ef6\uff0cMyApp.apk\u53c2\u6570\u7528\u4e8e\u6307\u5b9a\u8f93\u51fa\u7684APK\u6587\u4ef6\u540d\uff0cMyApp-app.xml\u53c2\u6570\u7528\u4e8e\u6307\u5b9a\u5e94\u7528\u7a0b\u5e8f\u7684\u914d\u7f6e\u6587\u4ef6\uff0cMyApp.swf\u53c2\u6570\u7528\u4e8e\u6307\u5b9aSWF\u6587\u4ef6\u540d\u3002<\/p>\n3. \u7f16\u5199Android\u5e94\u7528\u7a0b\u5e8f\u4ee3\u7801<\/p>\n
\u5728Android Studio\u4e2d\u521b\u5efa\u4e00\u4e2a\u65b0\u9879\u76ee\uff0c\u7136\u540e\u521b\u5efa\u4e00\u4e2aWebView\u63a7\u4ef6\uff0c\u5c06SWF\u6587\u4ef6\u5d4c\u5165\u5230WebView\u4e2d\u3002\u5177\u4f53\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n
WebView webView = (WebView) findViewById(R.id.webview);<\/p>\n
webView.getSettings().setJavaScriptEnabled(true);<\/p>\n
webView.getSettings().setPluginState(WebSettings.PluginState.ON);<\/p>\n
webView.loadUrl(“file:\/\/\/android_asset\/MyApp.swf”);<\/p>\n
\u5176\u4e2d\uff0cWebView\u63a7\u4ef6\u7528\u4e8e\u663e\u793aSWF\u6587\u4ef6\uff0cJavaScriptEnabled\u53c2\u6570\u7528\u4e8e\u542f\u7528JavaScript\u652f\u6301\uff0cPluginState\u53c2\u6570\u7528\u4e8e\u542f\u7528\u63d2\u4ef6\u652f\u6301\uff0cloadUrl\u65b9\u6cd5\u7528\u4e8e\u52a0\u8f7dSWF\u6587\u4ef6\u3002<\/p>\n
4. \u4f7f\u7528Android SDK\u4e2d\u7684\u5de5\u5177\u6253\u5305\u6210APK\u6587\u4ef6<\/p>\n
\u5728Android Studio\u4e2d\uff0c\u4f7f\u7528Build->Generate Signed APK\u547d\u4ee4\u5c06\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u6210APK\u6587\u4ef6\u3002\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n
a. \u5728An<\/p>\n
<\/figure>\n<\/p>\ndroid Studio\u4e2d\u6253\u5f00\u9879\u76ee\uff0c\u7136\u540e\u9009\u62e9Build->Generate Signed APK\u3002<\/p>\n
b. \u5728\u5f39\u51fa\u7684\u7a97\u53e3\u4e2d\uff0c\u9009\u62e9Create new\u6765\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5bc6\u94a5\u5e93\u6587\u4ef6\uff0c\u7136\u540e\u586b\u5199\u5bc6\u94a5\u5e93\u5bc6\u7801\u3001\u522b\u540d\u3001\u5bc6\u7801\u7b49\u4fe1\u606f\u3002<\/p>\n
c. \u9009\u62e9\u8981\u7b7e\u540d\u7684APK\u6587\u4ef6\uff0c\u7136\u540e\u9009\u62e9\u521a\u521a\u521b\u5efa\u7684\u5bc6\u94a5\u5e93\u6587\u4ef6\uff0c\u586b\u5199\u5bc6\u94a5\u5e93\u5bc6\u7801\u3001\u522b\u540d\u3001\u5bc6\u7801\u7b49\u4fe1\u606f\u3002<\/p>\n
d. \u70b9\u51fbFinish\u6309\u94ae\uff0c\u7b49\u5f85\u6253\u5305\u8fc7\u7a0b\u7ed3\u675f\u3002<\/p>\n
5. \u6d4b\u8bd5APK\u6587\u4ef6<\/p>\n
\u5c06\u6253\u5305\u540e\u7684APK\u6587\u4ef6\u5b89\u88c5\u5230Android\u8bbe\u5907\u4e0a\uff0c\u7136\u540e\u8fd0\u884c\u5e94\u7528\u7a0b\u5e8f\uff0c\u6d4b\u8bd5SWF\u6587\u4ef6\u662f\u5426\u6b63\u5e38\u663e\u793a\u3002<\/p>\n
\u603b\u4e4b\uff0c\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u5c31\u53ef\u4ee5\u5c06SWF\u6587\u4ef6\u6253\u5305\u6210Android\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
SWF\u6253\u5305APK\u662f\u5c06Flash\u6587\u4ef6\uff08SWF\u6587\u4ef6\uff09\u6253\u5305\u6210Android\u5e94\u7528\u7a0b\u5e8f\uff08APK\u6587\u4ef6\uff09\uff0c\u4f7f\u5f97Flash\u52a8\u753b\u3001\u6e38\u620f\u3001\u5e94\u7528\u7a0b\u5e8f\u7b49\u53ef\u4ee5\u5728Android\u8bbe\u5907\u4e0a\u8fd0\u884c\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecdSWF\u6253\u5305APK\u7684\u539f\u7406\u548c<\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1655,1657,1656,14,171],"class_list":["post-712","post","type-post","status-publish","format-standard","hentry","category-zuoapp","tag-android-apk","tag-1657","tag-androidapp","tag-14","tag-171"],"_links":{"self":[{"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/posts\/712","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/comments?post=712"}],"version-history":[{"count":0,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/posts\/712\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/media?parent=712"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/categories?post=712"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/tags?post=712"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}