SDK Shoot Out, Android Vs. IPhone
snydeq writes "Fatal Exception's Neil McAllister delves into the Android and iPhone SDKs to help sort out which will be the best bet for developers now that technical details of the first Android smartphone have been announced. Whereas the iPhone requires an Intel-based Mac running OS X 10.5.4 or later, ADC membership, and familiarity with proprietary Mac OS X dev tools, the standard IDE for Android is Eclipse. And because most tasks can be performed with command-line tools, you can expert third parties to develop Android SDK plug-ins for other IDEs. Objective-C, used almost nowhere outside Apple, is required for iPhone UI development, while app-level Android programming is done in Java. 'By just about any measure, Google's Android is more open and developer-friendly than the iPhone,' McAllister writes, noting Apple's gag order restrictions on documentation, proprietary software requirements to view training videos, and right to reject your finished app from the sole distribution channel for iPhone. This openness is, of course, essential to Android's prospects. 'Based on raw market share alone, the iPhone seems likely to remain the smartphone developer's platform of choice — especially when ISVs can translate that market share into application sales,' McAllister writes. 'Sound familiar? In this race, Apple is taking a page from Microsoft's book, while Google looks suspiciously like Linux.'"
Android runs on Linux....
I actually RTFA because I clicked on it before there were comments, got to the end and went looking for the next page link - but there isn't one. It's pretty light on any interesting technical details - mentions some stuff about the IDE, the frameworks ("one is Java and the other is Objective-C") and ends with the same question everyone else is asking, at the moment - which will be better.
If you've payed any attention at all to both Android and iPhone development already there's probably not much in there you won't have picked up from casually reading bits and pieces. Unfortunately. Let me know when there's a nice in-depth article available!
requires a intel mac?
dont tell that to my G5... it's happily working.
Do not look at laser with remaining good eye.
LOL, true - and the FINANCIAL BURDEN of buying a $500 mac mini to develop on!
I agree that the iPhone is not as friendly to casual developers, though. And that is a problem for those of us who like open source stuff. A professional is not going to sweat the cost of the Mac Mini or the use of Objective C - but that sure will put off the basement developers.
W..w..W - Willy Waterloo washes Warren Wiggins who is washing Waldo Woo.
T-Mobile has already said they're limiting what can be run. No skype/voip for example.
Do you even lift?
These aren't the 'roids you're looking for.
It would be nice to see comparisons of the market leaders with development for iPhone / Android.
Based on raw market share, Symbian is the market leader (57%), followed by Blackberry (17%), Windows Mobile (12%), Linux (7%) and then iPhone (2.8%). Android yet to make a showing!
( Figures from http://en.wikipedia.org/wiki/Smartphone )
I've done Symbian developement and there are lots of ways of doing it. Nokia's C/C++ API, Java or even Python. It isn't 100% open as in you can't have the source code of the OS, but the APIs are all documented and there aren't any restrictions on what your apps can do. If you want your apps signed it can be harder I'm told, but I've never tried that.
Every man for himself, all in favour say "I"
I hate Apple's brick walls around their platform which is anti to what Apple once stood for.
Funny, I always thought of Apple as a walled off isolationistic company. Where have you been? Granted they make GREAT products in their walled garden, but that was always the barrier to entry.. Apple's way or the highway. Yes I understand you probably mean programming for the desktop, but you could only ever extend so much - you had to work with what was given. IANAMP (I Am Not A Mac Programmer)
-Michael
Jython: "A compiler to compile Python source code down to Java bytecode which can run directly on a JVM".
What's purple and commutes? An Abelian grape.
iPhone SDK requirements to develop an iPhone app:
OS X 10.5.3 or later (Intel or G5)
ADC membership (free but requires registration)
XCode (free bundled with OS X Tiger and above but not installed)
Objective-C language
To distribute iPhone app:
Yearly License: Individual $99 or Enterprise $299
Android:
Windows XP or Vista, OS X Tiger or higher, or Linux (tested on Ubuntu Dapper Drake)
Eclipse 3.3 or 3.4 (free download from eclipse.org)
Java JDK 1.5 or 1.6 (free from Sun)
Apache Ant 1.65 (Linux/OS X), 1.7 (Windows) (free from apache.org)
Good chart at engadget.
Well, there's spam egg sausage and spam, that's not got much spam in it.
"...debugger integration is not really their strongest point."
You should really take a sideways look at the iPhone SDK. The debugger integration is solid and almost up there with Visual Studio for memory and thread debugging.
While xcode is technically just a wrapper on top of GCC, Apple has done an enormous amount of work to integrate all elements of the toolchain into the environment in a way that enhances developer productivity.
I used xcode when it first came out and was underwhelmed - it was really just a simple gcc wrapper back then. But, it's evolved significantly and makes the GNU tools it's built on actually efficient to use (think using the CLI version of gdb for debugging compiled, multi-threaded code on remote devices... sure, you can do it, but it's a time sink).
-Chris
XCode is just a UI for editing files and running command line build commands. So, one could probably do everything from the command line. But the whole thing comes configured for iPhone development, and it is nice to hit the button and have the app show up on the phone. I prefer to spend my time developing...at least until there is something that I can not do in XCode.
I do prefer Eclipse, and the differences in completion and help are slightly annoying, but I would not say that XCode, or Obj-C are getting in the way.
Wrong.
Quoted:
For example T-Mobile will not restrict applications providing a work-around to the SIM lock feature or prohibit Voice over Internet Protocol (VoIP) software, such as Skype applications, that come from the Android development community, according to Gartenberg.
"T-Mobile's CTO [Cole Brodman, who also serves as chief innovation officer for T-Mobile USA] told me that he while he can't say he'd like that to happen he isn't going to restrict it or stop it," said Gartenberg. "That's the spirit of how open they are to being an open platform and the fact they understand what it's all about."
"Gold still represents the ultimate form of payment in the world." - Alan Greenspan, 1999
Most of the article compares subjective/non-concrete things such as how many people use Obj-C and how many use Java. It misses on one significant aspect of the choice of language. Java opens up numerous possibilities for Android. In my opinion that was an obviously good move from google. Here is why -
1) Safety - Java provides a lot wider safety net than native language can ever.
2) Control - you can enforce the signing requirements in the VM for all code that is run or you can limit it as a requirement to only certain potentially unsafe APIs (RIM does this - you don't need to sign an App with RIM provided keys unless you use the more dangerous APIs.) This arrangement can generally give the user a lot more flexibility and control over what can and cannot run on the phone.
3) Exceptions are non fatal and possible recoverable, memory leaks are harder to induce
4) Verification of software is easier - API usage, control over how much memory is used, what network connections are made etc.
Before people complain Java is ugly and slow - this is J2ME (Java Micro Edition) that we are talking about which is much more lean and has different UI (Android UI doesn't look anything like the ugly Desktop Java and neither does RIMs - both use J2ME) These factors obviously matter a lot in a Cell phone type environment. I am especially happier with my Blackberry that it allows me to control what a Application can do or cannot do - make Wifi connection - No, access my address book - hell no, Access location - yes, Access Device Settings - no etc.
How do you prevent Skype? The same way you enforce SIM locking. The system is open, but you and I can only target the Dalvik engine. Modification at lower levels requires an open platform, and nobody wants to subsidize the price of a phone that you can unlock yourself and take to the cheapest competitor. You don't buy computers from your cable company, stop buying phones from your carrier. Hell, most of the carriers have sold off their networks to third parties to operate on their behalf. It shouldn't be long before Wal-Mart becomes frustrated enough with the carrier cartel and launches their own prepaid phones leasing access from these networks.
That said, I think the source the "no Skype" thing seems to be based on a question about whether Skype was available or not. It could be that Skype is welcome to write such an app but hasn't.
I Browse at +4 Flamebait
Open Source Sysadmin
What about Qt? Qt is about the same age and maturity as Linux, with Qtopia having been out there for far longer than iPhone, Android, or OpenMoko. As of August 2006, "there are more than four million Qtopia-based mobile phones in the market including mobile phones from Motorola, ZTE and Cellon" (from the press release announcing the Greenphone).
Qt is old as dirt by today's standards, being one of the most stable and robust frameworks out there, including its embedded platform (which implements its own windowing system to compete with X11 or Windows). The main "problem" with it is that it was never pimped out like Sun's Java was, so nobody has ever heard of it.
OpenMoko, written with Linux, GNU, and GTK+ on X11, has its telephony portions mostly written from scratch. It's so horribly immature that the Qtopia telephony software has been back-ported to Qt/X11 and now ships standard on OpenMoko devices. Truly a testament to Qt's robustness.
With Qt 4.4, Trolltech (now Nokia) put Apple's WebKit into the Qt framework (directly!), so making a webkit-based browser in Qt is a pretty trivial pursuit, as is rendering HTML and JavaScript in any standard app. Nobody seems to realize that this puts Qt/Embedded that much further ahead. Prepare to be stunned as Qt/Embedded quickly dominates the arena that everybody currently assumes is in contention between Google Android and Apple iPhone.
Oh, and Qt/Embedded is GPL'd software. Everything is open, your privacy can be assured, and YOU have control of your own phone. The way it should be. Just try and get that from Google or Apple. Hah!
Use my userscript to add story images to Slashdot. There's no going back.
I've been writing Objective-C for a few months now and I don't see the "elegance". I see the lack of garbage collection (at least on iphone dev) as annoying and nested function calls as hardly unique. Simple things like trimming whitespace from string requires goofy convoluted code.
newString = [origString stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]
I've also found the documentation a pain to navigate (which may be why I'm not so keen on it).
OTOH, XCode and it's suite of profiling tools is indeed handy, and the debugging seems to work pretty well.
Yeah? Well I think you're overrated too.
NextSTEP created Objective-C for their OS and API (which became Cocoa later on). So, it's not uncommon per se, it's merely created for that purpose. Although you can code on Windows with Objective-C (since gcc supports it on all platforms), without Cocoa it wouldn't be a seamless adventure. TBH I'd be surprise if anyone does any serious works with it outside of anything apple-related.
I develop with iPhone and OSX everyday and I agree Objective-C is a beautiful and well-designed language, but most of the fantastic experience of using it comes from the API part, not the language by itself.
Correction: Brad J. Cox Founder of Productivity Products International created Objective-C.
Object-oriented Programming: An Evolutionary Approach, by Brad J. Cox.
Brad later co-founded Stepstone and NeXT eventually bought all rights to Objective-C as they developed their own version, based on Brad's works.
Brad J. Cox's current info: http://www.virtualschool.edu/cox/
The self-documenting approach to coding that Objective-C inherits from Smalltalk makes for understanding what the hell is going on, by design, more rapidly than traditional C++ jargon. Of course, for every single book on Objective-C/Cocoa there are one hundred C++ or Java tombs. Somehow, the sheer volume of repeated books has helped reinforce in the minds of those never programming in Objective-C that it's some quasi-exotic language that no one ever uses. That's changing in a large way. As the growth of OS X 10.6 and beyond becomes apparent, so will the growth of books published and developers exposure to both help learn and evolve the language where it makes sense.
Quite a bit of Java's design was grafted from ObjC, yet that C++ syntax of Java somehow gives people the notion it's a derivative of C++ alone.
Regarding the Frameworks of Cocoa and without them the language wouldn't be so elogant. The same is true for all programming languages. Without Trolltech Qt's Libraries C++ wouldnt' be so elogant. Without the overkill of solutions within Java the Java language wouldn't have become the Server-side standard. So on and so forth.
Have you used a JME phone in a while? Let me tell you that native software is an order of magnitude faster on any phone I have used, be it Symbian or WM. When you have 200mhz to work with and lazy OS coders you can't afford the hit.
Well, I'm playing with my Freerunner right now. :)
SDK comparison wise there's no competition. The openmoko is basically a linux machine with a touchscreen and a GSM chip. Anything you can do with a Linux machine you can do with the Moko, Qt, gtk, shells, perl, python, etc. If you lack it you can port it. Forget special-purpose limited devices, this is the real deal, a full general purpose computer.
However, if you compare them as phones... well, the openmoko is basically a linux machine with a touchscreen and a GSM chip. After you've figured out how to flash it and decided on what distribution to run you get to debug alsa routing to bluetooth headset connections, configure gps daemons, etc. It's a good thing that it's as networked as it is (you can network over gsm, wlan, bluetooth, and what I use mostly, ethernet over USB (you'll want it in an USB port so it's charged anyway)) because you want a computer with multiple ssh sessions connected for many of the things you'll be doing on it.
Personally I'm not the least interested in getting either an Android based phone or the iPhone (or any other locked down proprietary crap), and for me the Freerunner is among the coolest things I've ever played with (and the first phone I've ever wanted to spend a cent of my own money on). The potential is enormous, and the way the base can make it into ubiquitous devices of all kinds makes me think it can become something that influences the future in a serious way. But it's not an end-user product yet, and I think it'll take a while before it's there.