File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mobile browser compatibility

 
Vinay Belagavi
Greenhorn
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am writing an application which needs to run on mobile browsers.The problem that I am facing is, when it is accessed through mobile browser the contents are not aligned properly. I am using JSP to write pages for mobile devices to be browsed. Is it compatible with mobile browsers? The content type I am using is ""application/vnd.wap.xhtml+xml".

I am checking my application through opera simulator. I dont get the same result when I try it on Nokia Emulator.
What should I do?

Thanks

 
Tim Holloway
Saloon Keeper
Pie
Posts: 17622
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't precisely place display elements on a mobile web view. There are just too many incompatible browsers running at too many different screen resolutions. You have to settle for hinting.

This is even more so when you're using WAP instead of HTML, since WAP wasn't intended to provide even what small amount of absolute placement capabilities that HTML affords. However, not all phones supply a full HTML browser and many that do vary in how powerful the browser is - especially when it comes to JavaScript and Flash.

A fairly good compromise is to divide your page into vertically-stacked bands, give plenty of allowance for variations in text size, and try and make it look good in a 320x240 pixel window (since that seems to be a fairly popular size for smaller devices).
 
Vinay Belagavi
Greenhorn
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tim, your suggestion helped me.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic