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 5935813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:18:31+00:00 2026-05-22T15:18:31+00:00

I have placed my static web application in an asset folder. My static web

  • 0

I have placed my static web application in an asset folder. My static web application has a lot of folders with files and placed in asset folder. I am calling html from another html with sub folder. I am getting ‘file not found’. Can anybody tell me what the problem is? I post my code below:

wv=(WebView)findViewById(R.id.webView);
        //wv.loadDataWithBaseURL("file:///android_asset/Opana_Changes/html/_assets/asset_001/index.html","","html");

       try {
        InputStream is=getAssets().open("Opana_Changes/index.html");
        BufferedReader br=new BufferedReader(new InputStreamReader(is));
        String line = null; 
        while ((line = br.readLine()) != null) { 
            html=html+line;
        } 
        br.close(); 

    } catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    } 

          wv.loadDataWithBaseURL("file:///android_asset/Opana_Changes/",html,"text/html", "UTF-8",null);


        wv.getSettings().setJavaScriptEnabled(true);
        }
  • 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-22T15:18:31+00:00Added an answer on May 22, 2026 at 3:18 pm

    Try the following code if your html file is in assets folder means in assets there is Opana_Changes folder and in Opana_Changes you have your html file. It will work.

    wv=(WebView)findViewById(R.id.webView);
    
    wv..loadUrl("file:///android_asset/Opana_Changes/index.html");
    

    Donot forget to vote if my response is helpful for you.

    file:///android_asset gives you path upto assets folder.
    

    Can you give the exact folder structure where your file is located

    Thanks
    Deepak

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

Sidebar

Related Questions

How to access App_Data folder in WCF service? I have placed a xslt file
I have a .jar file that i've placed in my D:\Coldfusion8\wwwroot\web-inf\lib\ directory. The file
I am trying to do the following in my web application: <img src=static.example.com/image01.jpg?width=300&height=300 />
I have a Template Column under which I have Placed a Dropdownlist. Now I
I'm using the Excel interop in C# ( ApplicationClass ) and have placed the
I have an Expander placed on a window with a blue background and I
I have strange problem with sharepoint and ajax functionality. We have an UpdatePanel placed
I have 1 red polygon say and 50 randomly placed blue polygons - they
I have a few models that need to have custom find conditions placed on
I have a C# form into which I've placed a left-docked MenuStrip . This

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.