File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

mobile browser compatibility

Vinay Belagavi

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?


Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

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

An IDE is no substitute for an Intelligent Developer.
Vinay Belagavi

Joined: Jun 15, 2006
Posts: 29
Thanks Tim, your suggestion helped me.
I agree. Here's the link:
subject: mobile browser compatibility
It's not a secret anymore!