Note that there are some explanatory texts on larger screens.

plurals
  1. POScreen blinking when using a webview with flash
    primarykey
    data
    text
    <p>Edit: I made a demo apk, so you can understand what I mean: <a href="http://cl.ly/3g0s1p030j243y0p3m2F" rel="nofollow">http://cl.ly/3g0s1p030j243y0p3m2F</a></p> <p>For my application, I want a kind of "Super Power Point", or a keynote (the commercial team will present the product to their customers) using all the Android goodness, gestures, etc... on an Android tablet. As Honeycomb is not yet ready and because we need it before march, we choose some random Froyo Tablet (Archos 101), but my issue is for every tablet/phone I tried.</p> <p>I made a really great application, but for some animations during the presentation, the customer wanted to use flash animations. Because I couldn't code animations (sort of little movies/ animated graphics) that easily in Android and the lack of time, that seemed to be a good idea.</p> <p>So, after some search on the Web, I used webview and this code:</p> <pre><code> WebView mWebView1 = (WebView) findViewById(R.id.webview1); mWebView1.getSettings().setJavaScriptEnabled(true); mWebView1.getSettings().setPluginsEnabled(true); mWebView1.loadUrl("file:///android_asset/graph_01.swf"); </code></pre> <p>This work pretty well, but on every device I tried (Archos 101, Nexus One, Nexus S, Galaxy S, Xperia, Desire, HTC Hero, and really more) every activity with a webview blink, a few milliseconds of black screen, then the animation finally appear.</p> <p>PS: My layout is quite simple too:</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_height="fill_parent" android:layout_width="fill_parent"&gt;&lt;/WebView&gt; &lt;/LinearLayout&gt; </code></pre> <p>Please help me, I cannot imagine I am the only one to face this issue.</p> <p>Thank a lot for any help. You have all my code and the demo apk.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    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