S
Steven J Sobol
So I'm playing around with J2ME, since I now have a slick J2ME-enabled
cell phone. Phone in question is a Samsung SPH-A660 using (I think) MIDP 1.0,
but it doesn't matter because this piece of crap doesn't work in the MIDP 2.0
emulator I downloaded from Sun either, so it's not a MIDP implementation issue. Nor does it work in the slightly-modified MIDP emulator I downloaded from
Sprint PCS. (By that I mean that Sprint's Wireless Toolkit is basically Sun's
toolkit but has a couple device profiles customized for Sprint.)
I'm frustrated to the point of putting my fist through the picture tube of
my monitor. The fact that I am using a laptop that has an LCD screen that
has no picture tube only adds to my frustration.
The issue is quite simple. This code
try{
g.drawImage(Image.createImage("/x.jpg"),30,30,Graphics.TOP|Graphics.LEFT);
}
catch(Exception e) {System.out.println("IOException: " + e.getMessage() );}
doesn't work, and yes, I've checked that the file is in the proper place.
When running the midlet, the createImage call generates an exception, but
all I see is:
IOException: null
So I have NO clue what steps to take to fix this problem. This createImage
call is part of a subclass of the MIDP Canvas class.
I'd offer more info, but I don't really have anything else to give you...
cell phone. Phone in question is a Samsung SPH-A660 using (I think) MIDP 1.0,
but it doesn't matter because this piece of crap doesn't work in the MIDP 2.0
emulator I downloaded from Sun either, so it's not a MIDP implementation issue. Nor does it work in the slightly-modified MIDP emulator I downloaded from
Sprint PCS. (By that I mean that Sprint's Wireless Toolkit is basically Sun's
toolkit but has a couple device profiles customized for Sprint.)
I'm frustrated to the point of putting my fist through the picture tube of
my monitor. The fact that I am using a laptop that has an LCD screen that
has no picture tube only adds to my frustration.
The issue is quite simple. This code
try{
g.drawImage(Image.createImage("/x.jpg"),30,30,Graphics.TOP|Graphics.LEFT);
}
catch(Exception e) {System.out.println("IOException: " + e.getMessage() );}
doesn't work, and yes, I've checked that the file is in the proper place.
When running the midlet, the createImage call generates an exception, but
all I see is:
IOException: null
So I have NO clue what steps to take to fix this problem. This createImage
call is part of a subclass of the MIDP Canvas class.
I'd offer more info, but I don't really have anything else to give you...