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

  • Home
  • SEARCH
  • 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 7539603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T07:25:41+00:00 2026-05-30T07:25:41+00:00

I am developing an android application, that should open html 5 file when it

  • 0

I am developing an android application, that should open html 5 file when it launches. What I did was

  1. I saved the complete html application under android Assets folder.
  2. I am not able to run the html file in the external browser using the path of assets folder directly, Following code which I used

    Intent browserIntent = new Intent("android.intent.action.VIEW",
                     Uri.parse("file:///android_assets/mobile/index.html"));
    startActivity(browserIntent);
    

An exception is thrown.

  1. I send this folder to phone’s internal memory and From there I want to run it.

Qn 1. How can I send a file into phone memory?

Qn 2. And can I run that html file from phone memory?

Is it possible to do so??

  • 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-30T07:25:42+00:00Added an answer on May 30, 2026 at 7:25 am

    First, use file:///android_asset/mobile/index.html instead. While the directory on the filesystem is assets/ (plural), the URL format uses asset (singular).

    Second, you cannot open a Web browser on one of your assets. You will need to either:

    1. Copy the files to external storage and launch the default browser on them

    2. Copy the files to internal storage, create a ContentProvider to serve them, and launch the default browser on the resulting content:// path

    This sample project demonstrates the second approach, albeit using a single PDF file than a directory of assets.

    A third possibility is for you to display the contents yourself using a WebView widget.

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

Sidebar

Related Questions

I am developing an Android application named AutoSms.I wan that when i open the
I'm developing an application for Android tablet 3.0 that has one activity that should
I'm currently developing an Android application that fetches images using http requests. It would
I'm developing an augmented reality application for Android that uses the phone's camera to
I am developing an android application that receives data about events from a server.
I'm developing an Android application that is targeting API level 8 (2.2, Froyo). I'm
I'm developing an Android application that might be used at night. Therefor, I need
I am developing an Android application that uses OpenGL to render a 3D ball
I'm developing an Android application that consists of: a lightweight background service that logs
I'm developing an Android application that uses a MapView . I'd like to run

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.