Opening an html file located in Terminal IDE working directory For some reason I am producing some html files from Terminal IDE.

However I can't seem to open any of them located in the working directory. Say we have /data/data/com.spartacusrex.spartacuside/files/index.html

Firefox shows nothing after I enter the url file:///data/data/com.spartacusrex.spartacuside/files/index.html

And Chrome complains 'Access denied'.

I don't want to root the device. Any walkaround?

Thanks,

Jeff
Application data is sandboxed on Android. Apps can only access their data directory, they cannot access the data of other applications. This is why your browsers cannot access the files that are located in Terminal IDE's directory.

Even with root, you will not be able to access those files the way you are attempting to. Your browsers are not programmed to request or use root permissions. Simply rooting your device will not suddenly grant them access to your entire filesystem. You would incur an additional step: you would need to try to modify the permissions of the files before opening them with the browser.

You need to move the files to a storage location that other apps can read, like a folder on your "external" storage (either a physical SD card or a virtual one like /data/media). Accessing them directly via your browser while they reside in the Terminal IDE directory is impossible without root.