Installing Google Android SDK 1.0 On Ubuntu 8.04 Desktop - Page 3
4 Creating A First Android Application ("Hello, Android")This example is taken from http://code.google.com/android/intro/hello-android.html. It's a good test if your Android SDK is working as expected. We will create a small application that displays Hello, Android on an Android phone. First, we create a new project (File > New > Project...): Select Android Project and click on Next >: Fill out the project details as follows: Afterwards, you should see this window (navigate to HelloAndroid > src > com.android.hello > HelloAndroid.java > HelloAndroid > onCreate(Bundle) to see the source code in the source code window). Click on the Maximize icon in the upper right corner of the source code window to maximize it: You should then see the source code in a bigger window. Modify the code so that it looks as follows:
Save the file. To run the code, go to Run > Run Configurations...: Highlight Android Application and click on the icon in the upper left corner that looks like a white sheet of paper: The following window should come up. Fill it out as shown, click on Apply... ... and then on Run: When you do this for the first time, the following message appears. Click on Proceed to continue: Finally, the Android emulator comes up. It can take a while until the Android phone has started up (so please be patient), but afterwards you should see Hello, Android in the display: Congratulations, everything is working as expected!
5 Links
|















print: 
Recent comments
9 hours 51 min ago
13 hours 20 min ago
16 hours 11 min ago
20 hours 47 min ago
21 hours 27 min ago
23 hours 5 min ago
1 day 2 hours ago
1 day 9 hours ago
1 day 10 hours ago
1 day 12 hours ago