MIDlets can only access files within their jar.
this.getClass().getResourceAsStream("/text.txt"); will attempt to access a file in the root of the jar file (though i think it checks the /res/ path...
Type: Posts; User: AbU5e; Keyword(s):
MIDlets can only access files within their jar.
this.getClass().getResourceAsStream("/text.txt"); will attempt to access a file in the root of the jar file (though i think it checks the /res/ path...
if you read the instructions that accompany the emulator, you will find that all of Nokias emulators can be integrated into the KToolbar.
simply copy the complete emulator's directory(found in...
were you using the correct pixel format for the drawPixels calls?
use getGameAction() e.g.
if(getGameAction(keyCode)==Canvas.LEFT){
goLeft();
repaint();
}
...........
this method will be faster as well.
without writing a scaling algorithm, you can't
the API desctibes this method as doing the following...
"The method will return a newly created mutable Image with the specified dimension and all the pixels of the image defined by the specified...
sorry, I don't understand the question. Here is what I *think* you mean.
>> A character is not displayed although it is going to use drawString by 7210.
You are passing a String to drawString,...
it mistifies me, how these bugs get introduced, especially when the code must be almost identical to the code used in the actual device (let alone the 10 other emulators nokia has done!)
it almost...
JAX is a better obfuscator(typically JAX obfuscated midlets will be around 2k smaller), but has a more strict license agreement.
technically, heap size can affect program speed indirectly.
If you have a small heap, the garbage collector will have to run more often, hence more processor time will be spent on this task,...
you could do a generic Quake style console :P apart from that, no, there is no device debug capabilities with production grade phones.
The 6310 Emulator reports the right softkeys ASCII value as -5
The phone reports it as -7.
also, javax.microedition.lcdui.Image.createImage(getWidth(),getHeight()*2);
should return an image...
>>I'v wrote my routines for transparent images(as most of us I quess) and I'm using several setClip() and drawImage several times to draw the non-transparent parts of an image to the screen
well...
DataInputStream dis = new DataInputStream(this.getClass().getResourceAsStream("/data.dat"));
your Jad file has its size attribute set corretly doesn't it :P
nokia phones are very picky about this
I assume the native game would have the capability to scan the states of each key? (a function that would be highly desirable in J2ME [as it would in J2SE!])
it we could scan key states instead of...
more precisely, its a limitation with current hardware. Its the phone manufacturers fault, to cut costs, they use the cheapest hardware that performs the tasks they need. Thats why the (keyboard...
hi norris - didn't you ask this question on the Sun KVM Forum? ;]
the short answer is no - youve gotta do it yourself (through interpreting keyPressed/keyReleased event sequences)
which is a...
the 6310 emulator is full of bugs, perhaps youve found another
just pray it works on the actual device!
p.s. have you tried several other midi files?
your code assumes System.curentTimeMillis() returns an accurate value - it doesn't!
I don't know what the minimum timer resolution is on the 7650 emu, it is possible it maybe as high as 50ms(or...