All About Symbian - Nokia (S60) and Sony Ericsson (UIQ) smartphones unwrapped

  #1  
Old 09-05-2003, 01:01 PM
vandoor vandoor is offline
Registered User
 
Join Date: Apr 2003
Posts: 13
vandoor is on a distinguished road
problem with Image

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

  #2  
Old 15-05-2003, 02:46 PM
gunnar-p800 gunnar-p800 is offline
Registered User
 
Join Date: Dec 2002
Posts: 39
gunnar-p800 is on a distinguished road
Re: problem with Image

Quote:
Originally Posted by 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
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.
Ads
 

Bookmarks

Tags
image, problem

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT. The time now is 12:04 PM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright Notes || Contact Us || Privacy Policy