How do I reference/open an html file on an EXTERNAL sd card?

FF22

Well-known member
Nov 12, 2012
1,887
1,817
113
How to reference/open an html file on an EXTERNAL sdcard

Samsung Galaxy Tab S is the device

I am trying to store my own "HOMEPAGE" which I call:

Tab-S.html

on my EXTERNAL sdcard.

I can do this on my BB devices using appropriate references and using the file:/// url.

I can store the file in INTERNAL memory/storage and gain access to it using the following url:

file:///sdcard/Download/Tab-S.html

But can't figure out the reference for an EXTERNAL sdcard. Is there a way or is this one of those kitkat restrictions?

Thanks in advance. (asked in the Tab S forum but this one probably gets more exposure)
 
Re: How to reference/open an html file on an EXTERNAL sdcard

Samsung Galaxy Tab S is the device

I am trying to store my own "HOMEPAGE" which I call:

Tab-S.html

on my EXTERNAL sdcard.

I can do this on my BB devices using appropriate references and using the file:/// url.

I can store the file in INTERNAL memory/storage and gain access to it using the following url:

file:///sdcard/Download/Tab-S.html

But can't figure out the reference for an EXTERNAL sdcard. Is there a way or is this one of those kitkat restrictions?

Thanks in advance. (asked in the Tab S forum but this one probably gets more exposure)
You could also use a File Explorer like ES File Explorer to find the exact directory of that html file.

Sent from my nifty 2 year old AT&T HTC One XL
 
Re: How to reference/open an html file on an EXTERNAL sdcard

Thanks for the replies. The problem is that none of the Browsers (Chrome, Internal/native or Firefox) can open a reference url pointing to the html file on the external card. If I use the FileManager on the Tab S, it will open that file in the browser. But I cannot open it from within the browser (I may try something).

Here's are screenshots where the file is located in Internal Memory and another where I try to open the one on the external sd card.

Screenshot_2014-10-07-12-41-33.jpg

Screenshot_2014-10-07-12-36-58.jpg

(ah, using the FileManager I was offered the option to open the file in Firefox (no option for Chrome or native browser) and then I was able to save a bookmark to it. Closed Firefox and then opened it. Went to bookmarks and it opened it. Now to find a way to reference or open it in Chrome)
 
Re: How to reference/open an html file on an EXTERNAL sdcard

So it's not KitKat's restrictions keeping you from opening it using a reference? hummm....
 
Re: How to reference/open an html file on an EXTERNAL sdcard

Hmmm is right! :D

But I had not thought of that - yes, it does open by indirect means.

I guess I can keep the file in Internal Memory with a backup copy on the card. If anything happens, I can copy it. But with internal drive space limited it's nice to store things on the card. Also, I don't like being befuddled by such limitations. :)

Now maybe you can explain how "file associations" (Windows' term?) work. Why when I point at xyz.html in the FileManager (My Files?) am I offered Firefox and some text editor and some other apps (tab is downstairs) but not Chrome or the Native Browser?

Thanks for the replies.

As you can probably see, I'm quite new to Android.
 
Re: How to reference/open an html file on an EXTERNAL sdcard

Hmmm is right! :D

But I had not thought of that - yes, it does open by indirect means.

I guess I can keep the file in Internal Memory with a backup copy on the card. If anything happens, I can copy it. But with internal drive space limited it's nice to store things on the card. Also, I don't like being befuddled by such limitations. :)

Now maybe you can explain how "file associations" (Windows' term?) work. Why when I point at xyz.html in the FileManager (My Files?) am I offered Firefox and some text editor and some other apps (tab is downstairs) but not Chrome or the Native Browser?

Thanks for the replies.

As you can probably see, I'm quite new to Android.

I don't think HTML files are that big. They are only a couple kilobytes. From the looks of it, you don't have any css added to it, so again, it shouldn't be that big. Have you tried other browsers instead of Chrome or Firefox?
 
Re: How to reference/open an html file on an EXTERNAL sdcard

I don't think HTML files are that big. They are only a couple kilobytes. From the looks of it, you don't have any css added to it, so again, it shouldn't be that big. Have you tried other browsers instead of Chrome or Firefox?

You are right, the file is not very large. But now it has become a pursuit or project! I want to know why I can't access the html and other files using the direct reference in a url. I've done it on my Blackberry devices and I do realize that that does not make it possible.

As for Browsers, I've got Chrome, the Native Browser and Firefox. I'll take recommendations for others.

But I'm also curious about the Apps that are available to open html/htm files. When I navigate to the file using MyFiles (native file manager), I see the choices besides Firefox are ESNoteEditor, Hcell2014, Hcell2014Viewer, HtmlViewer, PrinterShare and TextViewer. I guess I'm surprised that the other browsers are not available.

But, again, it is now more a challenge that I'd like to solve.

But, also, thanks, again, for replying.
 
Re: How to reference/open an html file on an EXTERNAL sdcard

A web browser can not parse a symbolic link. You will need the ACTUAL path to the SD card (something like file:///system/mnt/extSdCard/name-of-file.html)

Don't have a Tab S in front of me to verify that path. Sorry.
 
Re: How to reference/open an html file on an EXTERNAL sdcard

A web browser can not parse a symbolic link. You will need the ACTUAL path to the SD card (something like file:///system/mnt/extSdCard/name-of-file.html)

Don't have a Tab S in front of me to verify that path. Sorry.

I thought I had followed the correct "chain" or path but perhaps not. Do you know of any File Manager type apps that might show the full path as I navigate to the folder and file?
 
Re: How to reference/open an html file on an EXTERNAL sdcard

Any file manager that can see the system folder should work. Start in /system/mnt/ and look for references to external storage or SD card. Once you find it, you'll know the real path.

Why it's this way:
Android uses Linux tools and middleware for most operations. On a Linux system, making a symlink (Symbolic Link) is done to make files or folders easier to find.

Using the/system/mount directory, and a separate folder for each and every mounted storage device means you can have unlimited network shares, USB storage devices, or attached removable storage devices (such as SD cards).

A vendor could build a phone with multiple SD card slots and have them all available to the user at once, and each would need it's own symlink.
 
Re: How to reference/open an html file on an EXTERNAL sdcard

Samsung Galaxy Tab S is the device

I am trying to store my own "HOMEPAGE" which I call:

Tab-S.html

on my EXTERNAL sdcard.

I can do this on my BB devices using appropriate references and using the file:/// url.

I can store the file in INTERNAL memory/storage and gain access to it using the following url:

file:///sdcard/Download/Tab-S.html

But can't figure out the reference for an EXTERNAL sdcard. Is there a way or is this one of those kitkat restrictions?

Thanks in advance. (asked in the Tab S forum but this one probably gets more exposure)
 
Re:How to access EXTERNAL sd card file system from Android Firefox or Chrome ?

By typing " file:///SdCard " on the browser I always get the Internal memory files . I tried " file:///ExtSdCard ", unsuccessfully.
I have an Android Samsung Galaxy tablet Android version 4.4.2. Shouldn't there be a way to access and open files on the ExtSd Card from the Android Browser?

Thanks
Ittiandro
 

Members online

Forum statistics

Threads
954,795
Messages
6,962,835
Members
3,163,129
Latest member
heitezy