Read-only archive of the All About Symbian forum (2001–2013) · About this archive

problem with Image

1 replies · 2,087 views · Started 09 May 2003

i ve a problem when i want to draw Image on a Canvas,
i use method
getToolkit().getImage("image/test.png"😉;
when i compile with my IDE there is no problem
but, on device it doesn t find any picture

is there specific path ???

thanks

[quote="vandoor"]i ve a problem when i want to draw Image on a Canvas,
i use method
getToolkit().getImage("image/test.png"😉;
when i compile with my IDE there is no problem
but, on device it doesn t find any picture

is there specific path ???

thanks[/quote]

Hello, if this is a J2ME MIDP application, first make sure that the image is included in your jar file. You never get an error when you compile, you need to run the code before you find out if the application can find the image.
I assume the root of the above image path is the folder in the jar file where the class file is located.
So probably there should be a folder 'image' in the folder where the class file is located and the png image is expected to reside there.