Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Image works on Default Emulator but not on a Palm??

 
Horaci Macias
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to show an Image in a List Choice. In j2mewtk emulators it works fine, but on my PalmIII emulator it doesn't work. Does anybody know if Images are not supported in Lists on a Palm ? Thank you,
Horaci Macias
 
Jay S
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i dont know the answer for your q. But I have a q for you. How can I include an image in my java program using j2me and then display that on a palm. Do i get these images some where which are compatible with palm OS or how do i go with these? Also i wanna know how do i associate a Command class with my image, lets say if I have a "home" image which when I click should run a command and take me to the home screen. I really appreciate your feedback on this.
Thanks
Jay
 
Horaci Macias
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'll answer the second question since the first question is the same I'm asking too
Take a look at J2ME API and use a List.
The List class is a Screen containing list of choices.
Most of the behavior is common with class
ChoiceGroup and the common API
is defined in interface Choice.
When a List is present on the display the user can interact with it
indefinitely (for instance, traversing from element to element
and possibly
scrolling). These traversing and scrolling operations do not cause
application-visible events. The system notifies
the application when some
Command is fired.
The notification of the application is done with
commandAction .

So if you add an element to this List using
append(String�stringPart, Image�imagePart)
you'll see that image on the list. Now all you have to do is to code your CommandListener to handle commands.
Hope it helps,
Horaci
 
Jay S
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Thanks for the response. But, my question was what if I do not want to include my image in a List but just want to display it at the bottom of the screen as one of the commands. Like if you want add a command to a form u do
Command helpCommand = new Command("Help", Command.HELP, 1);
menuForm.addCommand(helpCommand);
Now here i want to add an image instead of a label "Help" to the command cuz palm can only accomodate max 3 commands at the bottom of the screen and I want to display more than that. Is there any other way I could do this.
Thanks
Jay
 
Ercan Erciyes
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi;
I checked the MIDP 1.0 and 2.0 specs and it is not supported//
But may be you can make these small icons by using Canvas ??
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic