Archive for October, 2008

Android Market Kicks Off!

Friday, October 31st, 2008

Android Market Kicks Off!
Attention developers! The Android market opened its doors and you can setup your apps in there now!

Android Market enables developers to easily publish and distribute their applications directly to users of Android-compatible phones including the T-Mobile G1.

Come one. Come all.
Android Market is open to all Android application developers. Once registered, developers have complete control over when and how they make their applications available to users.

Easy and simple to use.
Start using Android Market in 3 easy steps: register, upload, and publish.

Great visibility.
Developers can easily manage their application portfolio where they can view information about downloads, ratings and comments. Developers can also easily publish updates and new versions of their apps.

Android Market Publish: http://market.android.com/publish

Android invasion

Friday, October 31st, 2008

I just read this article on the Financial Times site of the FT Techblog:

Tech blog (Richard Waters): I have to confess: Google’s mobile phone platform is getting off to a much better start than I had expected.

The generally favourable reviews of the first Android phone, the G1 made by HTC for T-Mobile, showed how well Google had done from a standing start in just a year and half.

Now comes news that Motorola is about to throw its lot in with Android, using the Google software for its consumer smart-phones. Given Motorola’s slumping market share, it certainly makes sense to consolidate on three platforms.

It’s too early to declare Android a winner, though. Google still has to persuade mobile phone companies that it is friend rather than foe. The T-Mobile device works best as a delivery mechanism for Google’s own services. How many operators are ready to throw their lot in with Google to that degree?
Full text: www.ft.com/techblog

IMHO, Motorola announcing to take a deeper look to the Android platform and supporting it is a quite huge step forward for Android. Not so long ago Motorola was the second largest cell phone maker in the world and it was about to push Nokia from its throne as the world’s larget manufaturer. But since the amazing Motorola RAZR they didn’t do anything special in the market and their products just didn’t have any flair. I still have my Nokia shares in my depot and not Motorola. Nokia is still one step ahead and they have a more innovative flair.

However, I think Google and Android will kick off soon. There just need to be more devices available, more users, more developers and more interest in the platform. Until now Google did a lot of good things and making the platform and free of charge means that manufacturers can build phones with the OS without paying for the OS. This is a huge advantage in point of saving per product costs in the first place. Furthermore, they have the freedom to customize the OS to their needs (say manufacturer / carrier branding, etc.).

Regarding 3rd party applications (that is our field guys!) developers just love open source software. From my point of view not that much that it is mostly available free of charge but it provides the possibility to look into the original source code and get a clue how the heck Google made this or that. I don’t consider this stealing of code. It is just a hint to crash my mental blockade which I guess everyone of you might have experienced some time ago.

Anyhoo, it is getting more and more interesting by every day that passes by. Share your thoughts – share your code – just if you want to, of course! :)

What do you think about that?

Android is now open source

Wednesday, October 22nd, 2008

Just saw this article on Golem. Check out the video:

Android Source: http://source.android.com/

Android Development Demo: “DialANumber” – How to write your own very first Android program – Made Simple!

Tuesday, October 21st, 2008

While I think the Android development examples are not really good and straight forward perhaps some of you come along with them. However, I would like to provide you a very very simple example here on how to write your own first Android program.

This is technically very easy. Once you got Eclipse and Android installed and running on your computer (I use a Mac OS Leopard powered MacBook but you can use a Microsoft Windows XP/Vista/etc. PC as well) you just start Eclipse. Now you just go to “New » Project... » Android » Android Project...” and enter the required data. Once you are done the result might look like this:

Android Development Demo: “DialANumber”

Now you can start writing and customize the default “Hello World” a.k.a. “Hello Android” app which just shows a text field. If you are really really lazy you could also copy/paste the following code:


package com.DialANumber;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.LinearLayout;

public class DialANumber extends Activity {
  EditText mEditText_number = null;
  LinearLayout mLinearLayout_no_button = null;
  Button mButton_dial = null;

  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    mLinearLayout_no_button = new LinearLayout(this);

    mEditText_number = new EditText(this);
    mEditText_number.setText("5551222");
    mLinearLayout_no_button.addView(mEditText_number);

    mButton_dial = new Button(this);
    mButton_dial.setText("Dial!");
    mLinearLayout_no_button.addView(mButton_dial);
    mButton_dial.setOnClickListener(new View.OnClickListener() {
      public void onClick(View v) {
        performDial();
      }
    });

    setContentView(mLinearLayout_no_button);
  }

  public boolean onKeyDown(int keyCode, KeyEvent event) {
    if (keyCode == KeyEvent.KEYCODE_CALL) {
      performDial();
      return true;
    }
    return false;
  }

  public void performDial(){
    if(mEditText_number!=null){
      try {
        startActivity(new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + mEditText_number.getText())));
      } catch (Exception e) {
        e.printStackTrace();
      }
    }//if
  }
}

That was quick! :)

Now you should create a debug runtime configuration which can be done at “Run » Debug Configurations…“. Here you select “Android Application” and press “New“. Enter a name and select the “DialANumber” project. Launching the default Activity might be a good idea as we not know what the f*** it means right now. :) So just hit “Apply” and “Debug” and the program will be started in the Android simulator. To give you a clue how that looks like here are some screen shots:

Android Development Demo: “DialANumber”

Android Development Demo: “DialANumber”

As there is an EditField for the phone number which can be modified you can also enter a new phone number in there. An example of this comes here:

Android Development Demo: “DialANumber”

Android Development Demo: “DialANumber”

As everyone can see we are able to dial the number in two different ways:

  1. Hit the “Dial!” button next to the input field.
  2. Hit the “green dial” button on the bottom of the device.

Here is an illustration of this:

Android Development Demo: “DialANumber” - How to write your own very first Android program - Made Simple!

That’s it. Pretty easy, huh? :)

I am looking forward to find some time in the near future to pimp this example a bit. I am thinking of a number field filter adding (which looks a bit confusing in the API documentation) or something else. Suggestions are welcome!

In case someone is really lazy interested you can download the whole example project here: dialanumber.zip.

JavaDoc for Android SDK 1.0 R1

Saturday, October 18th, 2008

While the release of the final Android SDK 1.0 R1 along with the Google/T-Mobile/HTC G1 made me quite happy I was again surprised that it does not come with a standard JavaDoc package documentation. :(

Google always tries to be as much standard-conform and Java-straight in all their activities but this disappointed me deeply! Every Java developer (and I am doing this for quite some years now) just loves a library’s JavaDoc because it is so helpful with a stream lined designed and we just know how to navigate in there. Because Google’s standard Android documentation seems to use some other technology it is more difficult to use. At least for me!

Anyway, after using the Google search engine for quite some seconds (may be two) I found a site on the Internet that offers the Android SDK documentation in our beloved JavaDoc format. Everyone who likes to use it please take a look below. I will also add this to the links collection in the navigation bar so everyone can find it with an ease in case you loose your bookmark :)

Android SDK JavaDoc Main Site:
http://www.androidjavadoc.com/

Android SDK 1.0 R1 JavaDoc:
http://www.androidjavadoc.com/1.0_r1/index.html