aspose file tools*
The moose likes Java Micro Edition and the fly likes mobile browser compatibility Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "mobile browser compatibility" Watch "mobile browser compatibility" New topic
Author

mobile browser compatibility

Vinay Belagavi
Greenhorn

Joined: Jun 15, 2006
Posts: 29
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

Joined: Jun 25, 2001
Posts: 16012
    
  19

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).


Customer surveys are for companies who didn't pay proper attention to begin with.
Vinay Belagavi
Greenhorn

Joined: Jun 15, 2006
Posts: 29
Thanks Tim, your suggestion helped me.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: mobile browser compatibility