You Are Here:

Community: Developer Discussion Boards

#1 Old Images in J2ME Midlets - 2008-03-24, 14:38

Join Date: Feb 2008
Posts: 14
jouoba
Offline
Registered User
hi,
i developed a midlet that uses images to make buttons to control the application. everything works fine in the emulator (sun wireless toolkit 2.5), but when i load the midlet in the nokia 5610 xpressmusic i use for testing purpose, i cannot see the images (i checked in the jar file to see if all the pictures are present). is there a link between this situation and the fact that the midlet is not signed ? thank you in advance for your help.

jonathan
Reply With Quote

#2 Old Re: Images in J2ME Midlets - 2008-03-24, 14:46

Join Date: Sep 2007
Posts: 874
honest_success's Avatar
honest_success
Offline
Forum Nokia Champion
Did you put your images at res folder or somewhere else ? If you have put your images at classed folder first move it.


-Kartik Trivedi
Reply With Quote

#3 Old Re: Images in J2ME Midlets - 2008-03-24, 14:57

Join Date: Feb 2008
Posts: 14
jouoba
Offline
Registered User
hi kartik,
thanks for your answer.
i put the images in a "pics" folder which is in the "res" folder. i don't know what you mean by classed folder, and where do i need to moves the images ?

jonathan
Reply With Quote

#4 Old Re: Images in J2ME Midlets - 2008-03-25, 11:09

Join Date: Feb 2008
Posts: 14
jouoba
Offline
Registered User
hi,
i still have have problems with the use of images in my midlet. from what i understood i don't need to put the images in the res folder (i am using the sun wireless toolkit 2.5), but where these images should be ? everything works fine with the emulator, but when i test my midlet on real phone (5610 xpressmusic), no image is displayed. thank you again for your help.

jonathan
Reply With Quote

#5 Old Re: Images in J2ME Midlets - 2008-03-25, 13:41

Join Date: Sep 2007
Posts: 874
honest_success's Avatar
honest_success
Offline
Forum Nokia Champion
I told you to move images from "classes" folder not from "res" folder. You do one thing first check if you are using canvas then check weather you are using following method or not to get height and width?



int height=this.getHeight();
int width=this.getWidth();

Because some time this can happens because of it.
Reply With Quote

#6 Old Re: Images in J2ME Midlets - 2008-03-25, 15:36

Join Date: Feb 2008
Posts: 14
jouoba
Offline
Registered User
thank you kartik, i solved the problem.

jonathan
Reply With Quote

#7 Old Re: Images in J2ME Midlets - 2008-03-25, 20:29

Join Date: Sep 2007
Posts: 874
honest_success's Avatar
honest_success
Offline
Forum Nokia Champion
You are welcome. Now always use getHeight() and getWidth() method whenever you use canvas.

Happy Coding

-Kartik Trivedi
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
How far can J2ME really go in doing some voice call stuff? jin.z Mobile Java Networking & Messaging & Security 4 2008-01-29 17:32
Beginners Tutorial for J2ME j2meed Mobile Java General 1 2007-08-27 16:30
Ayuda con j2me polish robervelez Foro en Español (Spanish Forum) 2 2007-06-06 21:44
Future of J2ME / MIDP JWtheCoolOne Mobile Java General 2 2007-01-12 15:09
Symbian and non Symbian J2ME thongtom Mobile Java General 2 2005-06-28 11:52

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia