7

There are other questions on this same topic, but I'm finding that on 4.0.4 with my HTC One, I can open file:/// URLs just fine with Firefox, but not with Chrome or the Android browser. Those two simply report a security error and show no content.

Is this something that changed since the 2.x era when it was apparently possible? (edit well I realize there was no Chrome for 2.x but ...)

Andrew T.
  • 15,988
  • 10
  • 74
  • 123
Pointy
  • 250
  • 1
  • 2
  • 12

1 Answers1

3

The issue was user error stemming from the less-than-obvious way the Android OS file system works. Everything visible in the file system is under a top-level (the real top) directory called "sdcard". Thus, file:/// URLs only work for paths like file:///sdcard/foo/bar.

I'll add with questionable relevance that if you haven't installed the app "AirDroid", you should. I found it while looking around for answers to a related problem.

Andrew T.
  • 15,988
  • 10
  • 74
  • 123
Pointy
  • 250
  • 1
  • 2
  • 12