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
|
www.seamlessenterprise.com
One number. One voicemail. Seize the lead. Sprint Mobile Integration.
www.seamlessenterprise.com
One Number. One Voicemail.
Make it easier for clients to reach you. Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com
One number. One voicemail. Sprint Mobile Integration.
www.seamlessenterprise.com
AT&T Synaptic Compute as a Service. Boost your power on demand.
Trial: IBM Cognos Express Reporting, Analysis & Planning
Learn benefits of Simpana software.
View the Gartner Video















print: 

Recent comments
17 hours 14 min ago
19 hours 58 min ago
1 day 1 hour ago
1 day 3 hours ago
1 day 4 hours ago
1 day 5 hours ago
1 day 7 hours ago
1 day 13 hours ago
1 day 14 hours ago
1 day 17 hours ago