Hi, this should be a simple question - but can smeone confirm how images etc called from the resource (res) folder. For example, I usually use the following code which works great in sun wtk emulator but isnt working in the series 40 emulator and real 6280. It doesn't work with my N70 device, fails to find image.
ufoSprite = new Sprite(Image.createImage("/ufo.png"));
catch (IOException e)
showAlert("Failed loading image!");
Seems normal to me. I've tried using a full system address, relative addresses, and package address. Ive seen similar code in Nokia docs, can someone just fill me in with the proper way. Do I need to sign the midlet first (hope not!)
*I've doubly-doubly checked that the image is there, it's in normal vanilla ping format, isn't transparent just in case, and not currently opened in an editor. It works perfectly in sun wtk and SonyEric emulator. It's definitely there! *
PS: I replaced my 6280 with a N70 this morning and found that all but one of my games (about 14) don't work anymore! They open and then close right away. But the MMAPI app I struggled with yesterday works on the N70 like a charm! You win some...