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 (404)
games submitted by our members
Games in WIP (289)
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  
  Spread the knowledge... in a fun way!  (Read 1689 times)
0 Members and 1 Guest are viewing this topic.
Offline Anon666

Junior Member




aka Abuse/AbU5e/TehJumpingJawa


« Posted 2006-07-29 00:03:53 »

Conventional compatability testing will give you a list of buggy methods for a particular device.

Now with the awful quality of J2ME API implementations, I have begun to think this is the wrong way around.
It would be easier to list the API methods, and against it list the handsets on which the method is faulty.

For a little fun (and also a little education!), I propose we begin a Thread to achieve this.
One person will state an api method (fully qualified!) ,
and others *race* to respond with a device on which said method behaves incorrectly. (and how it behaves incorrectly)
The first to respond gets to select the next method! =)

So, what do you all think? =)

If someone is willing to select a method to kick us off?

For the sake of fair-play; lets keep the API set to just the major ones, say :-

midp1, cldc1, midp2, cldc1.1, jsr135, jsr184, samsung, nokia, motorola, siemens, benq(o2x2/midp2 hybrid), sprint, vodafone, jphone, mascot, (any important API's i've forgotten?)
Offline aNt

Senior Member




AFK


« Reply #1 - Posted 2006-10-05 13:47:15 »


displayable.setFullScreenMode(true);
Offline RageMatrix

Senior Newbie




Java games rock!


« Reply #2 - Posted 2006-10-05 14:05:59 »


displayable.setFullScreenMode(true);

Device: Motorola V525 (May affect other Motorola handsets).
Problem: Only paints in area not used by softbuttons, even if no softbuttons are used, so you get a white non-repainted area along the bottom of the screen.
Solution: Override displayable.getHeight() and +10 to the result of the normal method. This should then give you proper fullscreen.

Sorry, I can't think of anything else to choose offhand. Someone else can choose another method.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Abuse

JGO Coder


Medals: 2


falling into the abyss of reality


« Reply #3 - Posted 2006-10-05 21:16:37 »


displayable.setFullScreenMode(true);

Device: Motorola V525 (May affect other Motorola handsets).
Problem: Only paints in area not used by softbuttons, even if no softbuttons are used, so you get a white non-repainted area along the bottom of the screen.
Solution: Override displayable.getHeight() and +10 to the result of the normal method. This should then give you proper fullscreen.

Sorry, I can't think of anything else to choose offhand. Someone else can choose another method.

Surely that is a problem with getHeight() not accounting for the screensize change Wink
Incidentally, the more durable way of handling this issue on the Motorolas, is to listen for the sizeChanged(...) callback method. (as not all motorolas have a softkey bar height of 10 pixels)
It receives the correct canvas dimensions in its parameters.

Going back to the original method :-


displayable.setFullScreenMode(true);

Device: LGC2200
Problem: throws a NullPointerException if called within the Canvas constructor.
Solution: call it after the Canvas has been constructed & made the current displayable.


Next method :-

javax.microedition.lcdui.Graphics.drawRect(int, int, int, int)

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!
 
Browse for soundtracks 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 (37 views)
2013-05-17 21:29:12

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

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

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

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

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

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

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

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

UnluckyDevil (153 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.086 seconds with 22 queries.