Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (522)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (589)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Building a WAP browser in J2me  (Read 1277 times)
0 Members and 1 Guest are viewing this topic.
Offline niklasa99

Senior Newbie


Medals: 1


Java games rock!


« Posted 2004-12-19 13:30:06 »

I'm pondering upon implementing a WAP browser in J2ME. I gave it a quick try using the HttpConnection and the kXML2 library for parsing XML and "so far so good" but I really need some input upon the feasability of this project.

1) Should I try using the standard "Form" displayable and adding StringItems et cetera as necessary? That would probably get me a long way but I am afraid I will run into unforseen problems which gives me option 2)

2) Implement it as a Canvas, do everything myself and therby get more or less full control of all the elements.

Anyone got any inputs on potential pitfalls on any of the above methods?

I have tried using WebViewer (http://www.reqwireless.com/webviewer.html) which is a really amazing piece of software. I'm hoping to end up with something like that.
Offline shmoove

Junior Devvie




Doh!


« Reply #1 - Posted 2004-12-20 06:08:46 »

I would do it on a Canvas. But that's more of a personal thing - I like to have low level control of things, and implementing the high level widgets isn't too much trouble. The problem with Forms is that they're a bit unpredictable. For simple things they work great but if you try to get clever, the different implementation details that change from phone to phone might muck things up a bit.

shmoove
Offline cellectivity

Innocent Bystander




Always looking for good Java Developers


« Reply #2 - Posted 2005-01-06 18:37:15 »

Niklas,

Please keep me up to date of how you're going with the development and if you need any help on specific matters.

We're currently interested in such a project.

Regards

Cellectivity
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline niklasa99

Senior Newbie


Medals: 1


Java games rock!


« Reply #3 - Posted 2005-01-11 06:41:42 »

Just a quick update for cellectivity and anyone else that might be interested.  I researched the Form based approach (and actually managed to build a working browser for both WML and X/HTML within that framework) but as shmoove already pointed out it gives unpredictable results, is limited and adds alot of unnecessary constraints.

The GameCanvas approach is ofcourse more work (but not really alot more) but is extremely portable between devices (especially coupled with a build process such as that from j2mepolish.org).
Offline Abuse

JGO Knight


Medals: 14


falling into the abyss of reality


« Reply #4 - Posted 2005-01-11 13:43:47 »

You would only need Canvas, not GameCanvas.

p.s.

From a portability point of view, you should also be aware that relying on g.drawString(...) can be problematic.
Many phones have font issues (either incomplete character sets, issues with particular characters, ridiculously large fonts, peculiar alignment issues, or incorrect stringWidth(..) values)

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here! https://dl.dropbox.com/u/54785909/EliteIVsmaller.png
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

trollwarrior1 (19 views)
2014-11-22 12:13:56

xFryIx (68 views)
2014-11-13 12:34:49

digdugdiggy (47 views)
2014-11-12 21:11:50

digdugdiggy (41 views)
2014-11-12 21:10:15

digdugdiggy (35 views)
2014-11-12 21:09:33

kovacsa (59 views)
2014-11-07 19:57:14

TehJavaDev (61 views)
2014-11-03 22:04:50

BurntPizza (60 views)
2014-11-03 18:54:52

moogie (75 views)
2014-11-03 06:22:04

CopyableCougar4 (76 views)
2014-11-01 23:36:41
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!