Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Niky, you have a code example <a href="https://stackoverflow.com/questions/3915255/loading-flash-files-swf-webview-in-android">here</a>.</p> <p>I have used this example to test this code and confirm it works. In this example the qualibus.swf is in contained within the assets of the app. Please test this on an actual device, as on the emulator it show a blank page (probably the flash player is not present on the emulator)</p> <p>Test3Activity.java:</p> <pre><code>package com.blabla.test3; import android.app.Activity; import android.os.Bundle; import android.webkit.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); } } </code></pre> <p>main.xml:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" &gt; &lt;WebView android:id="@+id/webView1" android:layout_width="match_parent" android:layout_height="match_parent"&gt; &lt;/WebView&gt; &lt;/LinearLayout&gt; </code></pre> <p>Result:</p> <p><img src="https://i.stack.imgur.com/gWcMp.png" alt="Application running and displaying swf in web view"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload