Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Palm application prototype

 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13077
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am looking forward to discussion of possible Java J2ME applications here.
I did this prototype of a "flash card" style drill program using an earlier version of J2ME earlier this year.
http://www.lanw.com/java/flashcardpalm.htm
Naturally there are a lot of adaptations you have to make for the smaller screen and slower processor. For example, I precalculated the lines to fit on the screen rather than calculating on the fly.
Bill
 
Chris Cingrani
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I like the flash card program, Bill. Also, I am a big fan of your Java 2 Exam Cram book. I hope to pass the Programmer's Exam in the coming weeks.
I am curious - did you notice much performance difference when running the application on the emulator and running it on the actual Palm device?
Chris
 
shailesh sonavadekar
Ranch Hand
Posts: 1874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chris , there will be definitely mark difference in teh performance. As you are running emulator on your pc , you have more resources. It is definitely going to be fast. But , on devices like palm pilot were memory is scarce resource , footprint is just 50 to 100 kb , then application can be really slow. Thus , emulator testing can not be set as benchmark for the perfomance testing on real device.
I hope this is helpful.
SHAILESH.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13077
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SHAILESH is correct that you can't use the emulator as a direct indicator of expected performance. However, you can use it as an indirect indicator. The POSE emulator is really slick and a big timesaver.
Optimizing performance on small systems is going to be really interesting. In that flashcard demo I minimized String object creation by storing the data as preset byte arrays, but it still has to create quite a few Strings. GC seems to work well as I never got a memory error.
Some actual times on Palm III:
load application and database - 4 seconds
to display next question approx 2 seconds
screen repaint after scrolling - probably less than 0.1 second, you can see a flash but it is quick.
Bill
 
Chris Cingrani
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bill and Shailesh -
Thanks for the input. It basically confirms the fact that I need to buy an actual Palm device before starting any development work. The last thing I want is to develop a slick application, only to have it's performance be too slow when loaded on the device it is meant for!
Chris
[This message has been edited by Chris Cingrani (edited November 22, 2000).]
[This message has been edited by Chris Cingrani (edited November 22, 2000).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic