Palm Pre Development Issues - Part 1

Over the last few weeks I have spent a fair amount of time developing an application for the Palm Pre. I have been spending time working on developing for the iPhone, and there are a ton of differences between the two, most negative for the Palm.

The first and most obvious difference is the programming language. When developing for the iPhone you use Cocoa, defined by Wikipedia: Cocoa is one of Apple Inc.'s native object-oriented application program environments for the Mac OS X operating system. Apple also provides tools specifically to develop Cocoa applications, XCode and Interface builder. XCode is a nice programming tool, but Interface builder is what really puts iPhone development miles ahead of Palm Pre development. Interface builder allows you to visually set up all the screens of your application and easily link them to your code, and while it may still take a while to set up all your screens, it is certaintly much easier than what you have to do with the Pre...

When developing for the Palm Pre you get to use the exciting combination of..... HTML and JavaScript!!! Yea, I wasn't that excited either. Palm does provide a very full featured SDK and once you start to get the hang of it the Object Oriented JavaScript gets a lot easier and you can do some nice things with it. Without a tool like Interface Builder, you are forced to make HTML templates, and use CSS to control the look and feel of all your screens. Since HTML and CSS are widely used by web developers, it really isn't a problem, but anyone who has spent a lot of time with CSS knows that a lot of it is trial and error until it looks the way you want it. So you have to change the CSS, re-package the application, re-install the application, and re-launch the application to see if it looks the way you want... a few pixels off, all over again.

While it would be nice to have a visual editor to help you out, it really isn't a deal breaker, and I have a much bigger and more annoying issue... call backs. Call backs are often necessary, and in certain situations work really well, but when they are the only thing you have to control the flow of your application, things quickly get messy. Let me give you an example:

Palm provides functionality for GPS and Reverse GPS (based off of GPS coordinates) but their function doesn't just directly give you the information and continue to let you use it in the flow of your code, it requires a call back function which can then do something with the code. So to get the reverse location info, you have to call the gps, have it return the coordinates to another function, have that function then call the reverse function and have it pass the results to a third function, which can then try to do what you wanted to do with the information. Very quickly your code gets stringy, hard to follow, and more difficult to do things that should be a lot more simple.

So while Palm provides a lot of functionality to get information from the phone, the only way to get it is with call backs, which makes dealing with the data you get back much more annoying than it needs to be...

 

 

Bookmark and Share    
blog comments powered by Disqus

19 COMMENTS

posted by palm parts on: Dec 9, 2011 12:30pm

The Pre is an elegantly crafted device that has a very natural feel to it. The whole exterior (and even webOS itself) has an aura of acute roundness and polish. Something this smooth has not been seen before in the world of smartphone handsets and certainly not out of Sunnyvale.

posted by YAO123 on: Nov 4, 2011 05:04am

Hi, my friends,welcome to choose and buy ,it is very great, I like it so much http://www.snowbootsy.com/ ugg boots on sale Ugg snow boots Ugg classic boots Ugg classic cardy boots Ugg classic tall boots Ugg classic mini boots Ugg tall boots Ugg short boots Ugg bailey boots Ugg slippers Ugg boots for men Kids ugg boots  

posted by on: Aug 21, 2009 01:03pm

I imagine using callbacks would be a nightmare for programming games or other graphic intensive apps!

posted by air jordan shoes on: Jun 24, 2010 09:12am

I am agree with landlord.Here provide many game for everyone . Wonderful artical excelling nature images. Let you have unexpected surprise. After you play game tired ,you can come to these websites http://www.from-sports.com/ to relax your mood.

posted by moncler jackets on: Jun 13, 2010 05:47am

Here elaborates the matter not only extensively but also detailly .I support the write's unique point.It is useful and benefit to your daily life.You can go thosetp:http://www.filling-with.com sits to know more relate things.They are strongly recommended by friends.Personally

posted by moncler baby on: Jun 24, 2010 06:32am

Here elaborates the matter not only extensively but also detailly .I support the write's unique point.It is useful and benefit to your daily life.You can go thosetp http://www.moncler-jackets-outlet.com sits to know more relate things.They are strongly recommended by friends.Personally

posted by air jordan 16 on: Jul 9, 2010 12:41am

The post about leisure is quiet good. Reduce our work pressure, improve our life mood . I like it very much.I will support it often. These days I want to buy something from these websitesXXXXXX,but I don't know how to do.I hope you can help me.Thank you very much! Nike Zoom Blur Low

posted by gucci outlet on: Jul 7, 2010 09:23am

Mark S. is definitely on the right track. If you want to get a professional looking email address, Id recommend buying your name domain name, like or ajf 3 If its common it might be difficult to get, however, be creative and you can usually find something.

posted by louis vuitton handbags on: Jul 13, 2010 06:06am

"Here products xx, has fashion model, superior quality and service, cheap ugg boots price and updates quickly.I support strongly always! I want to buy XX, I hesitate to select which style more better.Hope your unique recommends.

posted by Nike air force on: Jul 9, 2010 07:07am

Well , the view of the passage is totally correct ,your details is really reasonable and you guy give us valuable informative post, I totally agree the standpoint of upstairs. I often surfing on this forum when I m free and I find there are so much good ugg boots information we can learn in this forum!

posted by new balance on: Jul 17, 2010 06:59am

Well , the view of the passage is totally correct ,your details is really reasonable and you guy give us valuable informative post, I totally agree the standpoint of upstairs. I often surfing on this forum when I m free and I find there are so much good information we can air jordan 21 learn in this forum!

posted by air jordan 20 on: Jul 19, 2010 02:04am

Well , the view of the passage is totally correct ,your details is really reasonable and you guy give us new balance 999 valuable informative post, I totally agree the standpoint of upstairs. I often surfing on this forum when I m free and I find there are so much good information we can learn in this forum!

posted by Jimmy Mancusi on: Aug 21, 2009 03:04pm

Programming games or graphic intensive apps would definitely pose some problems, but I think more of those would be caused by the HTML/JavaScript base and the hardware and graphics support.

posted by Barry Schwartz on: Aug 20, 2009 08:52pm

I wonder what part two will say, you Palm Pre fan.

posted by Jimmy Mancusi on: Aug 21, 2009 03:56am

I got some more things in store... maybe should have a hardware review as well....

posted by Alex on: Aug 24, 2009 01:38pm

"but anyone who has spent a lot of time with CSS knows that a lot of it is trial and error until it looks the way you want it." -- Maybe if you're a n00b. :-) When I do design, it's pixel perfect and looks great in Firefox, IE6 and Mosaic 2.0.

posted by Danny on: Oct 15, 2009 12:35pm

Your dumb callbacks are teh good./

posted by on: Dec 10, 2009 02:15pm

Cannot compare the two platforms. You have on 1 side a platform with 3 years and on the other side a platform with less than a year. On the Iphone the app store was available only after 1 year, prior to that all applications were web based. Developing something for the palm pre is very easy, but It is easy to understand that games on under the current platform are limited. Palm will have to release a more low level API to be used on games, streaming apps... And sure the will announce it shortly. The other options is use the upcoming flash support to develop some games for the Pre.

posted by home builder web design on: Mar 6, 2010 06:18am

Palm Pre development services are available in EffectiveSoft company ... Sharona Alperin subject of the song...,i used ...!