Close Show/hide page

Android Red Bouncing Ball

Download (for devices running Android v2.1)

As the geek sits down to learn a new programming language or new programming platform, the first thing he or she must do is learn to make a program that successfully prints the words “Hello, world!” to the screen.

The main significance of this first minor feat as it relates to the programmer is not epistemological, technical, or temporal, but psychological. Crossing the — shall we call it the “Hello world” threshold? — brings with it the realization of the existence of a universe of infinite possibilities. But also the burden and intolerable vertigo that comes with that sense of unlimited freedom.

For, alas, there is no standard “second program” for the geek aspirant to sit down to write. The programmer is on her own. Of the potentially infinite paths that lie in front of her, which will she choose?

Actually though, the most common second program chosen with pedagogical motives in mind — I would submit — would be that venerated bouncing ball, colored 0xFF0000. If you come from a Flash background, you probably know of it well.

Here’s mine, on the Android platform- (Sure wish I could’ve used Flash 10.1… ;)

13 Responses to “Android Red Bouncing Ball”

  1. Lawrie says:

    Ha! I love it. Nice work Lee.

  2. Keith Peters says:

    Haha. The bouncing red ball is my “hello world” as well. I’ll be doing my own Android version soon I think.

  3. sonicoliver says:

    Tradin’ in mah lame ass 3GS as soon as these go on sale in Australia :)

    I love this video too:
    I send it to all the haters…

  4. Drinkspiller says:

    Very nice, Lee. Was this done with AIR for Android? Can you share your source?

  5. Desmarkie says:

    Hah, that’s exactly what I did too. I always tend to do this with an image instead though, currently pinging a basketball around the screen :)

    How are you finding the move to Android?
    There’s a few bits I still need to get my head around, but I think that’s more a lack of java experience than anything. Otherwise it seems pretty straightforward.

  6. admin says:


    This was done with Java and the Android API. I’ll try my best to get the source in a publicly viewable state and post it soon.


    I found the transition to Java coming from an Actionscript 3 mindset to be overall surprisingly pleasant. But for 2D graphics… nothing beats the Flash drawing API :) So far I’ve limited myself to the basics when it comes to the rest of the Android API though…

    I’m not too crazy about the ‘enforced’ workflow regarding the separation of layout markup and code, but that’s probably a bias as a Flash-based agency developer :)

  7. Drinkspiller says:

    That would be awesome if you’d be willing to share the source!

  8. Drinkspiller says:

    A friendly request to grease the source request squeaky wheel. :)

  9. bbb116 says:

    Pls send me source, i am newbie in android. It’s very interesting…

  10. Jesse says:

    Looks great! Any chance of getting the source code? it would be greatly appreciated. thanks

  11. Aditya Rajawat says:

    Great work..:)Please share source code..!!!!

  12. try here says:

    I just want to tell you that I am just all new to weblog and truly savored your website. Almost certainly I’m planning to bookmark your blog post . You surely have impressive stories. Cheers for sharing your web-site.

  13. It’s really a great and helpful piece of information. I am satisfied that you shared this helpful information with us. Please stay us informed like this. Thank you for sharing.

Leave a Reply