File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes mobile browser compatibility Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Reply 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: 14456
    
    7

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
 
Similar Threads
Question about dispatcher
WAP Gateway
java.net.ConnectException: Network is unreachable
Want send username and password in url in some secure manner
Cannot find a function in the generated Web Service stub