闪光的Andr​​oid应用杂志 [英] Android flash magazine application

查看:127
本文介绍了闪光的Andr​​oid应用杂志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能建立基于Android在其嵌入闪存一本杂志?

Is it possible to create a magazine based on Android embedding flash in it?

推荐答案

你的问题是非常王尔德和通用的,我只能说是的,这是可能的!

As your question is very wilde and generic, I can only say "yes that's possible"!

下面是嵌入您的SWF文件转换成一个Android应用程序的链接。

Here is a link to embed your swf file into an Android application.

加载一个SWF到的WebView

public class Test3Activity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        String url ="file:///android_asset/qualibus.swf";

        WebView wv=(WebView) findViewById(R.id.webView1);
        wv.getSettings().setPluginsEnabled(true);
        wv.loadUrl(url);
    }
}

main.xml中:

main.xml:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
<WebView android:id="@+id/webView1" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent">
</WebView>
</LinearLayout>

结果:

这篇关于闪光的Andr​​oid应用杂志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆