Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7072129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:46:16+00:00 2026-05-28T05:46:16+00:00

Hi am newbie to android development. I had created one application where i need

  • 0

Hi am newbie to android development. I had created one application where i need to load an swf file into the emulator. For that i put one swf file in the prjt-workspace/assets/test.swf
and from the code i tried to load this swf into the WebView. Am getting the following error on logcat while trying to run this but getting a blank page:

01-10 15:26:00.271: D/WebCore(10262): Console: Not allowed to load local 
resource: file:///E:/android_new_workspace/FirstAndroidPrjt/assets/Demo_mobile.swf
line: 0 source: 

Following is the code portion i used:

public class WebViewExample extends Activity{

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.loadswf);
        String html =
            "<object width=\"550\" height=\"400\"><param name=\"movie\" value=\"file:///E:/android_new_workspace/FirstAndroidPrjt/assets/Demo_mobile.swf\">" +
            "<embed src=\"file:///E:/android_new_workspace/FirstAndroidPrjt/assets/Demo_mobile.swf\" width=\"550\" height=\"400\"> </embed> </object>";
        String mimeType = "text/html";
        String encoding = "utf-8";
        WebView wv=(WebView) findViewById(R.id.webview);
        wv.getSettings().setJavaScriptEnabled(true);
        wv.getSettings().setPluginsEnabled(true);
        wv.loadDataWithBaseURL("null", html, mimeType, encoding, "");
        wv.setWebViewClient(new HelloWebViewClient());

         }
    }


public class HelloWebViewClient extends WebViewClient{

      @Override
      public boolean shouldOverrideUrlLoading(WebView view, String url) {
         view.loadUrl(url);
         return true;
      }

 }

Can anyone tell how we can solve this problem..?

Can we load swf by deirectly giving the url instead of filepath from system-directory.?

Experts please help…Thanks in advance..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T05:46:16+00:00Added an answer on May 28, 2026 at 5:46 am

    @Tijo: you can specify with: webview.loadUrl("file:///android_asset/myown.swf");

    or you can put something like this: <embed src=\"file:///android_asset/BannerRotatorFX.swf\" width=\"550\" height=\"400\"> </embed> </object>";

    You cannot use filepath from your system directory. But you can put the swf file inside your assets folder in your android app

    AFAIK, you cannot by default load swf in emulator since you cannot download the flashplayer in emulator AFAIK. But I think you can manually put the flashplayer library files inside your emulator for this to work although I haven’t personally tried it. (I’m still looking where in the device the flashplayer libraries are residing so I can copy it).

    I hope this helps you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey am a newbie to Android development. I need an application to test the
Everyone, I am a newbie to android development. Now I have a question that
I'm newbie in Android application development. I just downloaded all SDks and Eclispe. Then
I am newbie in android application development. I am using the Form Stuff example
Im newbie into Android development and I have a silly question. How do you
Android-newbie playing around with a SimpleCursorAdapter and I've run into a few problems that
I'm a newbie on Android development platform. Can a third party application (say the
I am a newbie to Android application development... When i try to run my
well , i am into android development since 4 months now (yes a newbie),
Extreme Android developer newbie here...well, new to Android development, not development in general. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.