Slashdot Mirror


Where Android Beats the iPhone

snydeq writes "Peter Wayner provides a developer's comparison of Android and the iPhone and finds Android not only competitive but in fact a better choice than the iPhone for many developers, largely due to its Java foundation. 'While iPhone developers have found that one path to success is playing to our baser instincts (until Apple shuts them down), a number of Android applications are offering practical solutions that unlock the power of a phone that's really a Unix machine you can slip into your pocket,' Wayner writes, pointing out GScript and Remote DB as two powerful tools for developers to make rough but workable custom tools for Android. But the real gem is Java: 'The pure Java foundation of Android will be one of the biggest attractions for many businesses with Java programmers on the staff. Any Java developer familiar with Eclipse should be able to use Google's Android documentation to turn out a very basic application in just a few hours. Not only that, but all of the code from other Java programs will run on your Android phone — although it won't look pretty or run as fast as it does on multicore servers.'"

28 of 365 comments (clear)

  1. It's biggest strength by XPeter · · Score: 4, Insightful

    It's not DRM-laden patent trolling Apple.

    --
    "The difference between genius and stupidity is that genius has it's limits" - Albert Einstein
    1. Re:It's biggest strength by Xebikr · · Score: 5, Interesting

      Why was this modded down? Is it wrong? Apple has gone from evil yet innovative to just evil. Their recent lawsuits all but scream "We are out of ideas! Release the lawyers!"

    2. Re:It's biggest strength by Anonymous Coward · · Score: 4, Funny

      Why was this modded down? Is it wrong? Apple has gone from evil yet innovative to just evil. Their recent lawsuits all but scream "We are out of ideas! Release the lawyers!"

      It was modded down because the iphone owners on slashdot got to it before the android owners did.

    3. Re:It's biggest strength by Anonymous Coward · · Score: 4, Insightful

      Apple was never "evil yet innovative". The most "innovative" thing they ever did was introduce graphical computing to the masses...by buying the GUI PARC invented and basically using it as is. They've been especially uninnovative since the return of Jobs though, as their main business strategy has been entering rapidly growing markets and doing the same as everyone else, but more expensive and with less features. But they put it in shiny white plastic and market the hell out of it and everyone buys one because they want to be cool and Think Different, just like everyone else. Apple isn't a tech company, they're a fashion accessory company whose products happen to also function as gadgets.

    4. Re:It's biggest strength by zullnero · · Score: 4, Interesting

      Apple was only occasionally innovative. They generally stole a lot of their ideas just like everyone else. But I agree, they are evil, though they've only really been evil since they got their first big taste of success with the iPod and have slid into crazy evil. Once upon a time, they actually served a useful purpose as a company delivering a product that helped to motivate the whole market towards user-oriented innovation. Mainly by stealing good ideas that other companies had, nabbing ideas from here and there, and making them work within their closed loop and proving to the market that those ideas were good.

    5. Re:It's biggest strength by Thinboy00 · · Score: 4, Interesting

      Think of the 1984 ad... a la role reversal (someone should do a parody replacing "big brother" with Jobs and the jogger with... Tux?)

      --
      $ make available
  2. That's peachy by Anonymous Coward · · Score: 5, Insightful

    Unfortunately right now it appears that for users it's the other way around.

    1. Re:That's peachy by BitZtream · · Score: 5, Insightful

      That's not true. ONE reason for the iPhone's dominance is that there was no competition with a similar hardware class for quite some time.

      Sounds to me like you didn't know smart phones existed before you saw the iPhone.

      I assure you, I owned more powerful phones before hand, the only thing the iPhone has that its predecessor didn't is accelerometers and iPhone OS, my original iPhone was actually less powerful than the WinMo phone I owned before it.

      Hardware wasn't the problem. The problem is that smartphones in general suck, the iPhone happens to suck a whole lot less.

      No, don't tell me about what smart phone you have and how it doesn't suck. It does, you just don't realize it, they have a long way to go before the start getting to the non-suck state. We're about at the C64 stage right now. Which many look back on fondly and talk about how great they are ... from their modern, billion times faster PCs.

      The problem is that people like you still have no clue why the iPhone is popular. Its not the hardware. Its not the OS. Its not the app store. Its not iTunes. Its the whole package. From start to finish its all fluid. If you say that about Android, the only response I can give you is to come back and talk to me after you've actually owned one.

      People don't give a flying fuck about the processor it user, how much ram it has or who makes it. Really, they don't. They care about having a device thats enjoyable to use, across the board. As long as you keep trying to compare a product based only on specifications of the hardware or OS, you'll continue to be unable to understand why your predictions are invariably wrong. Regardless of where you want to believe it or not, style and user experience are actually what the people care about ... well, normal people anyway. It either does or doesn't meet their requirements, thats all they care about tech specs. A 400mhz proc is no different than a 200mhz proc if 200mhz plays their latest downloads of survivor.

      The iPhone isn't going to put up a fight because the contenders still haven't figured out that we're boxing, not playing checkers. To put it bluntly, as far as the general public is concerned, the iPhones contenders simply aren't.

      --
      Persistent Volume manager for Kubernetes - https://github.com/dwimsey/openshift-pvmanager
  3. amazing! by vrmlguy · · Score: 4, Funny

    After reading the article, I was able to port my entire Java repository to Android in just a few minutes. Of course, that consists of three versions of "Hello, world!"

    --
    Nothing for 6-digit uids?
    1. Re:amazing! by Bluesman · · Score: 4, Funny

      You joke, but in Java that represents a substantial amount of work.

      --
      If moderation could change anything, it would be illegal.
  4. meh by LiquidCoooled · · Score: 4, Informative

    iphone and android aren't really inclusive.
    open source is meant to be about choice and freedom.

    the nokia n900 + maemo allows multiple languages and frameworks (x11 gtk qt sdl gles and whatever else you can throw at it) to peacefully coexist together :)

    don't take my word for it though, i'm biased

    --
    liqbase :: faster than paper
  5. Re:Use "em" not "px" when defining the UI by Anonymous Coward · · Score: 5, Insightful

    To those about to complain that screen resolution differences makes developing for android harder, then try using a UI measurement that does not rely on pixels, like em

    Incidentally bitmaps that use em have not been invented yet. Vectors are not good for everything, and may take more power to render on the fly.

    Also, em solves exactly nothing about how much content can you fit on a display before it becomes unreadable, a problem you may get if you treat DPI as a free variable. Oh and it also doesn't factor in display ratio, unless you think squashing things is the way to go.

  6. No it will not by LWATCDR · · Score: 5, Informative

    "Not only that, but all of the code from other Java programs will run on your Android phone — although it won't look pretty or run as fast as it does on multicore servers.'""
    No because if it has any type of UI odds are that uses swing or awt. Not only that but I doubt that the Android JVM has all the standard libraries that are available on Sun Java.
    Yes they will know the syntax of the language but the libraries will be totally different.
    Not to mention that is probably very little code running on servers that you will want to run on a phone.

    And yes I write in java and I have an Android phone and I have looked at the Android SDK.

    --
    See my blog http://ilovecookes.blogspot.com/ for light hearted technical information.
  7. Re:Thanks for Playing by WrongSizeGlass · · Score: 4, Insightful

    Ugly multitasking on an Android is not better than slick single-app execution on an iPhone. It's only a different experience.

  8. Windows Mobile by Dan+East · · Score: 4, Insightful

    Then according to his logic, Windows Mobile is better than Android and iPhone combined, because not only can it run Java apps, but you can author software for it in practically any mainstream programming language.

    What about Blackberry? It is a pure Java based platform, even more so than Android.

    I just think it's silly to say "This device is LISP based, so it is better than device X because some corporation might have LISP developers sitting around that can write apps for it in a language they're used to!"

    --
    Better known as 318230.
    1. Re:Windows Mobile by Dan+East · · Score: 5, Interesting

      My game engine, which has been used in a Top-100 iPhone game, is 99% C++, and only has the minimum amount of Objective-C code required to handle various system events (around 200 lines of code). Of course applications intimately integrating with the iPhone's GUI API would require much more Objective-C. So Objective C is not the only officially supported language for the iPhone for generating native binaries.

      --
      Better known as 318230.
  9. Re:Thanks for Playing by Nerdfest · · Score: 4, Informative

    ... on a multi-core server. Personally, I think you'd be an idiot to expect it to be either. It obviously won't run as fast, and if you haven't created the display to scale to a small screen properly, I wouldn't think it would look good either.

  10. Are you kidding me??? by thetartanavenger · · Score: 5, Informative

    The pure Java foundation of Android

    Android is not java. Yes it has java aspects but it is not java! It's bits of java with a customized Android API.It doesn't even run a normal JVM, it runs the Dalvik VM.

    Not only that, but all of the code from other Java programs will run on your Android phone

    Seriously, no. Just... no. Try compiling a program that uses Swing, AWT or javax stuff.

    Don't get me wrong, I really like Android and hate iPhones. I have a G1 (lacking on RAM as much as it is). I've programmed for android although for fun, not the marketplace. I've even made my own ROM, again for fun. But claiming Android is Java and that everything that Java can do Android can also do natively is just naive

    --
    Who need's speling and grammar?
  11. Re:Shitty programmers writing shitty code. by owlstead · · Score: 4, Insightful

    Java does not just allow bad programmers to write sloppy code, it also allows good programmers to write better code (than in C/C++ and direct derivatives). Shitty programs are available in all languages. I managed to write a shit application in Lua in a minute flat. How difficult is it to grasp this concept? Do you really want a programming language that makes it harder to write manageable code, on purpose?

    I'm getting sick of this argument. Most of my esteemed C++ colleagues like Java once they've actually tried it out for real. Unfortunately we don't always get Java libs for the hardware we are using.

  12. Re:Use "em" not "px" when defining the UI by ducomputergeek · · Score: 4, Interesting

    With our last website design for our shopping cart, we elected to go with a fluid layout and use em. Great right? Nope. We heard so many complaints from customers it was rather eye-opening. The fact that things were "a little different" from screen to screen (say a desktop vs laptop) annoyed and confused people even if a box was just had more space in between. Frankly we couldn't see it. If the screen was wider, there was a bit more separation in places. So we ended up going back and defining everything being centered and by pixels so it looked the exact same no matter if the user had a 12.1" screen or 30" LCD TV. If they had a bigger screen/higher resolution, they just got to see more of the background gradient. The complaints stopped and we didn't alter the design. So go figure....

    We also have clients who are insanely anal about their branding and virtually demand things to be "pixel" perfect. With the iPhone/iPod Touch this hasn't been a problem. Android it has. Not to mention the other hardware inconsistencies.

    But in our shop, Android is really starting to cost us a lot of money in QA testing. And we guarantee that our software works on all known models as of a certain date. It's in the contract and the clients do pay us well for it. Our testing hardware for the iPhone/iPod Touch has been $1600 over the past two years. (iPhone 3G, iPhone 3Gs, iPod Touch). We've spent over $2500 acquiring Android hardware just in the last six months of last year and have already spent another $1400 this year.

    As a result, the cost of us building an Android app is now double that of an iPhone app. And at the rate the new Android phones are coming out, that is likely to increase if customers want a full compatibility guarantee.

    Now we're about to launch our first application built using the PhoneGap framework. It's basically a web app wrapped using PhoneGap's "container" (for lack of better description) and should allow us to support iPhone, Blackberry, and Android by only having to support 1 framework and using web programming. But we'll see how well that works.

    --
    "The problem with socialism is eventually you run out of other people's money" - Thatcher.
  13. 3 Subjects That Make People Irrational by aplusjimages · · Score: 5, Insightful

    Politics
    Religion
    Mac Products

    --
    Can I bum a sig?
  14. When will we learn... by BearRanger · · Score: 4, Insightful

    That a phone that caters to developers is NOT a phone that the rest of the world has much interest in using. I love the flexibility promised by Android, but if smartphones are going to take over the world I would not want my grandmother to have to deal with fragmentation and software complexity. Android phones and the iPhone occupy two different market niches. This is a good thing for both developers and consumers.

  15. Re:wake me up when it catches up by dangitman · · Score: 4, Insightful

    Some of us carry smartphones to increase productivity, not play video games on a 4 inch screen.

    And some people use smartphones to socialize and play games on a 4 inch screen.

    If you want to play games, buy one of those portable game widget things that Nintendo or Sony sells.

    So, someone who already has a smartphone should spend potentially hundreds of dollars, and carry a separate device, rather than spending a few bucks for a game on a device they already own? Why, just because you don't approve of games on a phone out of some misguided ideological notions of purity and productivity?

    Also, have you seen the relative difference in price for Nintendo DS and Sony PSP games versus the ones for the phones?

    --
    ... and then they built the supercollider.
  16. Re:Use "em" not "px" when defining the UI by shutdown+-p+now · · Score: 4, Informative

    I program Windows btw, but it's always been a pet hate that for so long, Windows enforced developers into a pixel-fixed unresizable GUI design.

    Well, it's not entirely true - while it wasn't properly resizable, it wasn't really pixel-fixed, either. For example, if you ever programmed directly in Win32 API or in MFC, you might remember that dialogs are laid out not in pixels, but in dialog units, which are actually a bit like em in that they are tied to the pixel size of the default UI font. If user changes the DPI setting in configuration, font size changes correspondingly, and dialogs should scale accordingly.

    The problem is that this is only used by default for dialog templates fed to CreateDialogIndirect. If you ever create a window yourself using CreateWindow, and manipulate that, all sizes do indeed come in pixels, and you need to use something like MapDialogRect to convert them yourself. And, of course, most people didn't bother...

    The other problem is that many high-level frameworks didn't bother, either. Delphi didn't do so for a long time, forcing to deal with pixels directly, for example. VB6 of all things did it right by introducing "twips", which are DPI-dependent (1440 twips/inch; that's 20 twips/pixel at 72dpi, and 15 twips/pixel at 96dpi), and using them for all UI measurements. Even then, creative code monkeys broke the model by observing the twip/pixel ratio for their specific DPI, and then using that as a general-purpose conversion formula...

    Now, as noted earlier, this still doesn't lead to truly reflowable UI. And it's not just a matter of user convenience, either - proper localization with statically sized UI is a pain, especially if you start with English, because strings in most other languages are longer, and can easily overflow UI elements sized for English. In sentences, word count can differ widely, too - sometimes so much so that the label now needs to be two-line to fit. On Windows, this was historically "solved" by letting localizers also tweak dialog layouts as needed, but this is obviously an ugly hack. The only proper solution is reflowable UI.

    Oh, and it was there before 2006 in stock offerings; WinForms got layouts in .NET 2.0, in 2005. It's just that it was not very convenient to use, and not well supported by visual form designer. With WPF and its XML-based markup, it's much more natural.

    And, of course, third-party frameworks had dynamic layouts on Win32 for ages. Qt had it since the first version, I believe; at least it was definitely in 2.x, which was the first one I've seen.

  17. Re:Use "em" not "px" when defining the UI by Sancho · · Score: 5, Informative

    His point is from a flawed premise. The Android emulator lets you target any version of Android with any version of the software. They could have spent 0 in purchase costs in order to effectively test on every conceivable hardware platform. They set unreasonable testing criteria, paid too much to fulfill it, and now they're complaining about it.

  18. Re:Use "em" not "px" when defining the UI by GlassHeart · · Score: 4, Insightful

    Professionals who tell their clients that "the software sill work on all shipping Android phones" better have tested on actual hardware. Emulators could not replicate for you chipset quirks, subtle timing problems, and many other issues that only occur on hardware. If you've shipped commercial software tested only against an emulator, I would strongly urge you to not admit it, and maybe get a lawyer.

  19. Re:Use "em" not "px" when defining the UI by centuren · · Score: 4, Informative

    Professionals who tell their clients that "the software sill work on all shipping Android phones" better have tested on actual hardware. Emulators could not replicate for you chipset quirks, subtle timing problems, and many other issues that only occur on hardware. If you've shipped commercial software tested only against an emulator, I would strongly urge you to not admit it, and maybe get a lawyer.

    This happens all the time in other areas, without need of lawyers. Support of all versions of IE (6+) on all versions of Windows (2000+) comes directly to mind. Web shops don't have a hardware setup for every Windows/IE combination, we use virtual machines (i.e. emulators). We make sure clients sign off on the final product, and professional obligations are honourable fulfilled.

  20. Re:Use "em" not "px" when defining the UI by Sancho · · Score: 4, Insightful

    "All shipping Android phones" is a somewhat silly claim to make. Do you tell your clients that your desktop software will run "on all shipping Windows laptops?" Your testing costs must be through the roof. It's amazing that anyone makes any money in this field.