If main.html is in your assets folder, you can call:
Webview wv;
wv.loadUrl("file:///android_asset/main.html");
On Jan 14, 11:55 am, Sundog <[email protected]> wrote:
> It occurs to me that I probably incorrectly assumed you were talking
> about a connection to a web server. I assumed this because I have been
> unable to get local HTML files and image assets to work with WebView.
>
> (On that note, if I can ask without derailing this thread, can anyone
> point me to a simple way to use WebView to work with local assets? I
> may be missing something obvious but I haven't been able to get it to
> work yet.)
>
> On Jan 14, 9:30 am, Sundog <[email protected]> wrote:
>
> > I must be missing something. Why not simply send your server a
> > parameter from your strings file? The parameter will automatically
> > switch based on which internationalized strings file is in use, then
> > you simply switch languages any way you want on your end.
>
> > On Jan 14, 9:12 am, "Fred Grott(shareme)" <[email protected]>
> > wrote:
>
> > > Some of you know that I ma one of the crazy ones developing a mobile
> > > app using only web based code and using webview, see video:
>
> > >http://www.youtube.com/watch?v=7NCZLYBqe8Q
>
> > > I know that I can using native code detect which human language was
> > > set and thus would like to code wise have my app switch to the
> > > appropriate human language html pages.
>
> > > But, currently the internationalization framework only work son res
> > > files and etc.
>
> > > It would seem to me that I stil should enact some of the guidelines
> > > for example use the two character human language designate prefix to
> > > denote what human language and ec with the web pages of the gui so
> > > that if the framework is extended to also act on android_asset files
> > > than it fits into that..
>
> > > Thoughts from other webview hackers about this..Good Idea? Bad
> > > Idea? ..and etc??- Hide quoted text -
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---