Palm Pre SDK != 'Web Apps'

Palm opened up their webOS SDK for the Palm Pre on July 16th, allowing anyone to check it out and start developing applications for the Pre. However, some developers are finding problems that prevent them from bringing their applications to the device. Craig Hunter, an iPhone developer, writes:
In my quest to re-experience the early days of app development on a new mobile platform, I didn't rewind one year like I was hoping -- I went back two years, back to the days when we could only develop web apps on the iPhone. I wrote this piece back then, bitching about the limitations of web apps on the iPhone. It seems we're right back in the same boat with webOS.
He specifically laments the lack of OpenGL|ES support and the accelerometer data being too inaccurate (currently limited to four readings per second). He raises some important points, with the above major stumbling blocks for those thinking of writing games, but he's wrong in saying that the Pre is akin to iPhone's web app 'SDK' as it was presented back at WWDC 2007. Palm's apps aren't web apps; yes they use javascript and HTML, but they tie into the system services with such. There is no other 'native' API; all applications, including the entire system shell, are built the same way and have the same capabilities. Really, Craig's found out that the Pre has (in effect) a sandbox for applications, and, if you think of it, it's not unlike the iPhone SDK sandbox. Bloggers lambasted the original iPhone SDK for providing only a baby subset of the actual features of the iPhone. Has it stopped growth, or a booming 65,000 app market with 1.5 billion unit sales? Of course not! Palm's lack of developer access to certain functions is a mere by-product of the immaturity of the platform. The reason there is no OpenGL|ES support on the Pre is because the Pre doesn't have an OpenGL|ES graphics driver. Currently the entire OS is using software-based drawing and animation (using directFB I believe). This is why webOS isn't as smooth as the iPhone in its animations or scrolling. But this is merely a software limitation, which will no doubt be improved upon with software updates. Palm has also proven that they're a much more open company than Apple in all their dealings with the Pre hacking community, which has impressed me to no end. I fully expect them to keep adding great features to their SDK and listening to the developer feedback. I do believe the accelerometer issue above to be an oversight; it's far more likely that Palm only envisioned game developers using the accelerometer at higher refresh rates, and the Pre wasn't initially designed for gaming, more being a re-imagining of Palm's canned Foleo project. That's not to say the Pre will never support gaming; the GPU in the Pre hardware is a damn good PowerVR SGX 530 chip, of the same family as that in the iPhone 3GS, just with a lower maximum polygon/sec count. As soon as there's a proper driver in the OS, and WebKit is re-tooled to use the GPU for its rendering, we should expect some really awesome updates to webOS. It's just a matter of time…

No promo codes for apps rated 17+

People are only now finding out what 17+ apps and rating systems entail; any application rated 17+ is refused the ability to have promotional codes generated, so you cannot send out review copies, etc. TUAW writes:
Apple specifies that any application that may contain high levels of offensive language, violence, sexual content, or references to drugs or alcohol receive a rating of 17+. But, according to Apple, apps that feature an embedded web browser or provide access to 3rd party content also automatically require the 17+ rating, regardless of the application's content or intended audience.
Marco Arment provides a little more detail:
Assuming Apple applies their standards on what constitutes “unfiltered internet content” somewhat uniformly, this will affect, among others, any subsequent versions of: Instapaper Every Twitter and Tumblr client that can show others’ content Every RSS reader Every Flickr client Every instant-messaging client (remember, text profanity counts) Every social-networking client Most ebook readers
However, it's worse than that. If you set a rating for an application before you've finished it and uploaded to iTunes Connect, there is no way to change the rating afterwards. So say, for example, you edit the application to remove offensive content or, as mentioned above, remove an inbuilt browser, you cannot change the rating for your application back to sane levels, thus preventing you from generating promo codes for it! Until recently it was even nastier: If you had even a single 17+ rated application entry on iTunes Connect, whether it had been uploaded/finished or not, you were forbidden from making any promo codes for any of your other apps, even if they were rated 4+. I fell into that trap by having my (unreleased) Doom port listed on iTunes Connect as 17+; for months I was unable to generate promo codes for my other apps until I contacted Apple with a 'WTF?'. Fortunately, you were able to modify the rating at the time, unlike now. I really hope Apple sort out this mess soon, because when the App Store system works it works really well.

SameGame v2.0

Coming Soon…

Speech Synthesis on iPhone 3GS

Posted this on Twitter a week back, but maybe it's of some interest to blog readers; here's how to do simple voice synthesis on the iPhone 3GS (3GS-only, I'm afraid). It's a private API, but hopefully if we file enough Radars they'll make it a public one.

To enable the following code to work you'll need to link the VoiceServices.framework (from the PrivateFrameworks folder of the SDK) in your app.

NSObject *v = [[NSClassFromString(@"VSSpeechSynthesizer") alloc] init]; [v startSpeakingString:@"All your base are belong to us"];

Apologies for my lazy 'NSObject' define above, but you get the idea :-)

With that, you have simple speech synthesis for your application (obviously you cannot include this when you submit to the App Store as it links to a private framework, but you can use it in your internal applications). It requires the 3GS because the Speech stuff just isn't in the firmware for the older devices.

Obligatory video below:

Quake 3 on iPhone 3GS

I posted these to Twitter, but I'll put them here too for posterity. Here are screenshots of my newly compiled version of Quake 3 running on the iPhone 3GS on max graphics settings. I made my own icon for it as I didn't like the original. Do note that the frame rate generally dips by 10fps when I press the screenshot buttons, and it runs really smooth on device! No special hacks used when building; I did turn on auto vectorization and NEON in the compiler settings.

Stack v3 Alpha 1 : Video Demo!

Here's a quick video of how (the unreleased) Stack v3 works. I think it's much improved - check it out:
Many thanks to all who've donated (and received their alpha version of Stack v3 in return) - I really appreciate it!

Stack v3.0…

Yes you read that right. In going back to make sure Stack v2.2 would work properly on 3.0, I had a horrid idea… A couple hours later, and I'd got it working. And man is it awesome! On a whim, I'd rewritten Stack to actually be an icon in SpringBoard. It can be moved anywhere, has all the same positioning and reordering abilities as any other icon, it doesn't interfere with other apps, and is generally the cleanest and best way I could ever implement Stacks (yes, with an 's', there can be more than one now!). It took an awful lot of hacking around and programming blind to pull it off, but I think it's gonna work really well. I have no idea when I'll release it, but it will (likely) only be for iPhone 3.0 and above (running out of 2.x devices here to test against for compatibility!). Also please note that I'm now taking donations as an incentive for me to continue working on Stack (as long as I can), so if you have anything spare to give I graciously accept any amount!
Here are various screenshots to just get you interested:

Stack v2.2 'release candidate' for iPhone 3.0

I held Stack 2.2 (my final release) for the launch of 3.0 as it made sense to make sure it still ran on the newer firmware (as I won't be able to update it from now on). Without further ado, I direct you to my 'new' Stack website! http://www.steventroughtonsmith.com/stack/ Hope this helps out all those who've been missing Stack and/or yearning for the cool new stuff in version 2.2. IMPORTANT NOTES: • Should work on iPhone OS 2.0 all the way up to 3.0. • Has issues on 3.0 as regards showing on top of videos (there's a technical reason for this, they removed something I was checking for in 2.x which allowed me to fade out when not at SpringBoard. Will try and find a workaround for 3.0) • Is not available in Cydia. This is a Terminal-only install, for political reasons. Sorry if it makes things difficult. • This is still a prerelease binary - there are some bugs. Let me know about them in the usual ways (email, Twitter) • As always, any of those Extended Preferences-alike mods will likely prevent Stack from showing in Settings NEW IN STACK v2.2: • Custom positioning - drag the Stack to reposition it horizontally • Display mode: image (customizable), single-icon, or cascaded icons (3 icons) • Optional Item-removal prompt • Grid View theming (Grid View images are fully modifiable) • Much-improved performance and memory usage

Trading Card Games

One thing I've learned during my life: people never grow up.

When I was young, Pokémon cards were all the rage, and that eventually turned to Magic: The Gathering in mid to late teens. Trading card games have naturally existed for many many years before that.

Today, it's the exact same with business cards. You go to conferences and events and try to trade as many as you can, to collect some in all sizes and colours. Nab yourself an Apple or Google business card and you're really proud of it. I'm pretty sure if people weren't too embarrassed to 'battle' their business card against others they would! I particularly liked the Realmac business cards (I wrangled one each out of Danny and Keith).

I must have been the only person at WWDC without business cards, so mid-week during the conference I decided to design myself a set I could order from Moo.

Today, they arrived! I'm really proud of them, being my first ever business cards, and I really enjoyed every bit of the design & ordering process with Moo. The Moo packaging is very nice too, with heavy duty holders.

I should also invest in some buttons, as quite a few people were sporting those too…

Tour of the Valley

Had a crazy day today with Chris McClelland and Philip Strain touring all the cool places in Silicon Valley (Google, Apple, Yahoo and Palm). Eventually ended up at Stanford, Tapulous and the WWDC Meltdown meetup. Can't say much about it except it was *awesome* :-D Funniest part of the day was when we saw the Tapulous offices and Chris decided that we should go in… Several seconds of shocked silence and priceless looks ensued before we introduced ourselves.

WWDC+Palm Pre = Rollercoaster Week


Haven't blogged in quite a while thanks to exams and whatnot, but this week I've been in San Francisco for Apple's World Wide Developers Conference with a sizable group of other Irish developers. And wow what a week it's been.

Asides the obvious Apple awesomeness, there's been even more cool stuff happening: at Monday lunch time Symbian held an event in Jillians just across from Moscone West, where the first 100 attendees got a free Nokia 5800 Xpress Music and t-shirt (as well as food and drink!):



Very nice move by Symbian I think; I would never have even bothered looking at Symbian even for making sure my websites run on it, but now with a free 'high-end' phone I have an excuse to do so. I'd also be really interested in writing S60 apps… except there's no Mac-native SDK. If Symbian actually wants to attract iPhone developers, as they seemed to at the event, then they better MAKE A MAC SDK!

On Tuesday, I decided to be adventurous. I was able to buy a Palm Pre from a local Sprint Wireless store without activation or a contract (apparently I hear it's very hard to do? $602 including tax), so I instantly ran off back to my hotel room to see if I could A) hack the activation out of the OS, and B) get it working so I can develop apps for it and run them on device.

Well, success :-) I gave up Tuesday eve because I couldn't get the device into restore mode no matter what I did, but on Wednesday morning I figured it out: you have to hold the volume-up button while the device is off before plugging it into USB, and from there you can use Palm's firmware flashers to do whatever you like with it. As the device can run unsigned firmware (!!!) I was easily able to hack out the activation check, and get up and running and enable the root shell. In that respect, I may just have the first jailbroken Pre in existence.







I gotta say; this week at WWDC I've used my Pre more than my iPhone. It's not better than the iPhone in any respect, BUT it's as-good-as for most people. Everything 'just works', whether it be syncing with iTunes or even using the iPhone headset with the Pre. It's a fantastic device and OS, and I really wish Palm well with it.

But man, for a hacker, the Pre is incredible. As mentioned, it runs unsigned firmware and has a root shell over USB when in developer mode (you can use the Konami cheat code to enable dev mode, too); you can do whatever the hell you like to the OS! The entire UI and all the apps are written in javascript, which in essence means the source code is available for you to modify at will, without recompiling anything. Even better, you can write C/C++ native Linux apps for it that draw directly to the framebuffer, as the recent Doom port shows. The specs are impressive, it's a ~600MHz ARM Cortex A8 with 256MB RAM with accelerometer, GPS, WiFi & Bluetooth, or, put another way, almost the exact same specs as the iPhone 3G S (bar the compass, afaik).

After revealing my exploit of the device, I was invited to a small Palm meetup nearby where I got to chat with the actual WebOS engineers, thoroughly validating my efforts :-D

Staying in San Francisco 'til Tuesday next, so hopefully I'll get some more free stuff somewhere (I'm *such* a student). This has seriously been the best week ever.

Lights Off - Ad 1

Made a simple ad for Lights Off using the awesome Kinemac (part of the Macheist bundle). Check it out below in HD! Grab Lights Off on the App Store!

The Last Word - TodayFM

I was invited on for a few minutes with Matt Cooper on TodayFM's Last Word last week, and the piece was broadcast last Thursday at 6.30. Topics include: • What's an 'iPhone App Developer' • What sort of apps I make • How I got into development • What's attractive about the iPhone • What's the attraction for people to download apps • How do I get applications on Apple's store • Apple Test Process • How hard is it to find apps • Pricing / Income • Is the iPhone the way of the future • Touched on iPhoneOS 3.0 announcement • Value for money • How difficult is it to write apps for iPhone
In a completely unrelated note, it appears I have 'won' the internet. All your base are belong to me? Thanks Andy Ihnatko!

Pre-iPhone 3.0

We're about thirteen hours away from seeing the new iPhone 3.0 software, and excitement is running high. Lots of rumours are saying that Copy/Paste is a certainty. I think they're right. What else could iPhone 3.0 bring to current iPhones? Here's what I think: - A new SpringBoard? A SpringBoard redesign to better handle multiple applications would be nice; multiple categories of apps, with a shelf at the bottom and arrow buttons to navigate through the categories with animations similar to Time Machine. The usual Dock would be visible with a swipe on the center dot in the status bar, and is grown to accommodate two rows of icons. - Background Apps? Possible background apps, up to three; they 'minimize' to the shelf. Here's a Photoshop mockup of how I'd imagine 3.0 to look (drew this myself): - Copy/Paste? Kevin Rose seems to know his stuff; a doubletap on a word would bring up a roundrect loupe with quotation marks that you could drag around a selection and copy/cut. I think it will only work in certain applications, however. - Developer APIs? It would be nice to see a Maps API; although if there is one I'd be pretty sure it's not Google Maps and instead Apple's own renderings due to licensing. A Search API would be possible too, as would Core Data and Cocoa Bindings. There is definitely to be a digital compass in the next iPhone, according to whispers, so CoreLocation will sprout magnetometer support. - SDK? The iPhone 3.0 SDK will likely require Snow Leopard to run, especially if new language features like blocks and GCD come to 3.0. I'm guessing Apple will release a beta SDK for Leopard tomorrow, but only the beta SDKs will run on Leopard, not the final. - Codename? Hearing the word 'Kirkwood' bandied about a bit. Take that as you will… I'm really looking forward to seeing whether any of my wish list above comes true; I have St. Patrick's Day to worry about instead, but hopefully I'll be able to tune into Engadget's liveblog of the event.