Running a local html file

hsfrey

Member
Jul 30, 2010
8
0
0
I have my own home page html file on my PC with all my favorite links.

I downloaded it to my EVO's microSD card, in the root segment.

How can I address it in the Browser, so it'll run?

With Firefox on my XP machine I can address it as
file:///[path/]hsfhome.htm

That doesn't work on the EVO, using a null path (since it's in the root).
It says "file not found".

And, I'm not sure what the [path] should be.

Has anyone done such a thing successfully?

I also downloaded (to the music folder) an html file pointing to local .wpl playlist files, each of which points to local .mp3 files. I'd like to be able to address that with the browser as well.
 
If the html file is in the root of the SD card, the path for your homepage should be:

file:///sdcard/hsfhome.htm

I just tested this and it works fine.
 
I will hit the thanx button for the new person. They probably didn't see it in the lower right hand side of the post.
 
For access a local html - not test in swf or others - file, in the application path, this code work fine - make in Flash Pro CS 5.5, type of file in Flash Pro CS 5.5 ==> "Air for Android", and Air 2.5...

The key is that in Android the "file:///android_asset/" are the path for assets subdirectory:

var workingFileYo:String = "zodiacmobilehtmltxt.html";
var resultsPageUrl:String = "file:///android_asset/" + workingFileYo;

var webView:StageWebView = new StageWebView();
webView.stage = this.stage;
webView.viewPort = new Rectangle(0, 0, stage.stageWidth, stage.stageHeight);
navigateToURL(new URLRequest(resultsPageUrl));
webView.loadURL(resultsPageUrl);

I hope this aid to many people, I let 5 days for learn how to make an APK and work and install, and access to local html page...

GOOD DAY...