This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Getting started with Java programming language and have Ashish Sarin & J Sharma on-line!
See this thread for details.
Win a copy of Getting started with Java programming language this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Displaying HTML content in Android.  RSS feed

 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a html file on my local drive. It contains Javascript and CSS. Is it possible to display it on Android.
Can we use WebViews to display this?

Any links to tutorials and articles that can help here will be appreciated.

Thanks.
 
Fred Grott
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes to all

The only thing missing at this time is the XMLHttpRequest object which means you do the old hide iframe techniques for ajax..
 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the answer Fred...

If the <script> tag in the HTML, references a javascript on a remote machine will web view get a handle to it and execute it when the page loads? Is web view like a normal web browser?
 
Michael Rivera
Ranch Hand
Posts: 132
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes possible!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!