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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T13:49:31+00:00 2026-06-04T13:49:31+00:00

I have put html file in sd card on android device. and i am

  • 0

I have put html file in sd card on android device. and i am running that through webview. But the path that i am giving in emulator is working fine. but not on device. Its giving an error ** Web Page on Found** while running.

I have this code to find the sd card availability and sd card root directory path and it is working fine. and output is coming properly.

Boolean isSDPresent = android.os.Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED);

        if(isSDPresent)
        {
          Toast.makeText(this, "yes SD-card is present", Toast.LENGTH_SHORT).show(); }
        else
        {
            Toast.makeText(this, "Sorry", Toast.LENGTH_SHORT).show();
        }

        File externalStorage = Environment.getExternalStorageDirectory();
        externalStorage.getAbsolutePath();
        Toast.makeText(this, externalStorage.getAbsolutePath(), Toast.LENGTH_SHORT).show();

but can i get the proper whole file path. Please suggest.

  • 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-06-04T13:49:33+00:00Added an answer on June 4, 2026 at 1:49 pm

    this code definitely solve your problem

    String storage_path = Environment.getExternalStorageDirectory().toString() 
                           + File.separator
                           + vfile;
    

    also if you want to add some files in sd card then use this permission in your manifest file

    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an html file that I need to take any tag and put
I have an html file called snake.html that I would like to put inside
My page contain lots of anchor and i have to put that html in
I have HTML pages that I put inside temp folder(Outside WEB-INF directory). I have
I have a HTML file that is linked to a Java class using the
I have a HTML file like this (I only put the body of the
I have a .html file that needs to go into my iPhone app's bundle
I have an html file that gets loaded when a user connects a flash
I have a PHP file that gets HTML from Memcached and serves it to
I have noticed that on my website index.html file that contaisn php code to

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.