Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (407)
games submitted by our members
Games in WIP (293)
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 979 times)
0 Members and 1 Guest are viewing this topic.
Offline niklasa99

Senior Newbie


Medals: 1


Java games rock!


« Posted 2004-12-19 14: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 Member




Doh!


« Reply #1 - Posted 2004-12-20 07: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

JGO Visitor



Always looking for good Java Developers


« Reply #2 - Posted 2005-01-06 19: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 07: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 Coder


Medals: 2


falling into the abyss of reality


« Reply #4 - Posted 2005-01-11 14: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!
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Get high quality music tracks for your game!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (90 views)
2013-05-17 21:29:12

alaslipknot (99 views)
2013-05-16 21:24:48

gouessej (129 views)
2013-05-16 00:53:38

gouessej (124 views)
2013-05-16 00:17:58

theagentd (135 views)
2013-05-15 15:01:13

theagentd (122 views)
2013-05-15 15:00:54

StreetDoggy (164 views)
2013-05-14 15:56:26

kutucuk (186 views)
2013-05-12 17:10:36

kutucuk (188 views)
2013-05-12 15:36:09

UnluckyDevil (195 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.134 seconds with 22 queries.