| Installing Google Android SDK 1.0 On Ubuntu 8.04 Desktop |
|
|
|
Installing Google Android SDK 1.0 On Ubuntu 8.04 DesktopVersion 1.0 This guide explains how you can install the Google Android SDK 1.0 on an Ubuntu 8.04 desktop. With this stable release of the Android SDK, you can now develop applications for Android smartphones (like T-Mobile's G1) and offer them on the Android Market. I do not issue any guarantee that this will work for you! 1. Preliminary Note
1 Preliminary NoteI'm using the user name falko with the home directory /home/falko in this tutorial. Replace them with your own details where appropriate.
2 Installing Java And EclipseBefore we can install the Android SDK, we must install Java and Eclipse (version 3.3 or 3.4 - I'm using 3.4 codename "Ganymede" here). First, we open a terminal (Applications > Accessories > Terminal): To install Java, we type sudo apt-get install sun-java6-bin (If you are on a x86_64 system, you also must install ia32-libs: sudo apt-get install ia32-libs ) You will be asked to accept the Java license during the installation: The Android SDK 1.0 requires Eclipse 3.3 or 3.4. Ufortunately, the Ubuntu 8.04 repositories only have a package for Eclipse 3.2 - therefore we must install Eclipse manually. Open a browser and go to http://www.eclipse.org/downloads/. Select one of the Java, Java EE, or RCP versions of Eclipse. I've chosen the Eclipse IDE for Java EE Developers for Linux 32bit (select Linux 64bit if you're on an x86_64 system): Download the file to your hard drive, e.g. the desktop (/home/falko/Desktop): To install Eclipse, we must open a terminal again. Go to the directory where you've saved the Eclipse file and uncompress it: cd /home/falko/Desktop/ This creates a directory called eclipse. Afterwards, you can delete the Eclipse archive file: rm -f eclipse-jee-ganymede-linux-gtk.tar.gz My eclipse directory is now located on my desktop (/home/falko/Desktop) - I don't want it there, so I move it to my home directory (you can leave it where it is or move it to whatever directory you prefer): mv eclipse ~ Inside the eclipse directory, there is an executable called eclipse - that's the file we must run when we want to start Eclipse. Obviously, we don't want to do this from the command line, so we create a launcher for it. Right-click on Applications and select Edit Menus: Select Programming (or whatever category you want the launcher to be located in) and click on New Item: Type in the name of the application (e.g. Eclipse) and the full path to the eclipse executable (/home/falko/eclipse/eclipse in my case) and click on OK: Then leave the menu editor: Now we can use the launcher to start Eclipse (Applications > Programming > Eclipse): Eclipse is starting up... ... and asking for a workspace (you can accept the default one): This is how Eclipse looks: On to the Android SDK installation...
3 Installing Google Android SDK 1.0To download the Android SDK 1.0, go to http://code.google.com/android/download.html, accept the license and click on Continue: On the next page, select the Android SDK for Linux... ... and save it to your hard disk (e.g. on the desktop): Now open a terminal again and go to the directory where you've saved the Android SDK and unzip it: cd /home/falko/Desktop/ We don't need the zip file anymore, so we can delete it: rm -f android-sdk-linux_x86-1.0_r1.zip We now have a directory called android-sdk-linux_x86-1.0_r1. In my case it's on my desktop - I don't want it there, so I move it to my home directory (you can as well leave it where it is): mv android-sdk-linux_x86-1.0_r1/ ~ The android-sdk-linux_x86-1.0_r1 directory contains a subdirectory called tools (/home/falko/android-sdk-linux_x86-1.0_r1/tools in my case). We must now open ~/.bashrc and add the following line to it so that android-sdk-linux_x86-1.0_r1/tools is in our PATH: gedit ~/.bashrc
Next, we must install the Android Eclipse plugin. In Eclipse, go to Help > Software Updates...: Go to the Available Software tab and click on Add Site...: The Add Site window opens. Fill in https://dl-ssl.google.com/android/eclipse/ and click on OK: Back on the Available Software tab, select Developer Tools (this should automatically check Android Development Tools and Android Editors) and click on Install...: In the Install window, make sure that both Android Development Tools and Android Editors are checked, and click on Next >: Click on Finish next: The plugins are now being installed: Eclipse must be restarted for the changes to take effect, so when you are asked if you want to restart Eclipse after the installation, you should select Yes: After Eclipse has started again, we must update our Eclipse preferences to point to the Android SDK directory. Go to Window > Preferences: If you see this message, click on OK and forget it: Click on Browse... ... and select the Android SDK directory (/home/falko/android-sdk-linux_x86-1.0_r1 in my case): Back in the Preferences window, click on Apply and then OK: That's it, you can now use the Android SDK to create your own Android applications.
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
Source: http://www.howtoforge.com/installing-google-android-sdk1.0-on-ubuntu8.04-desktop
Set as favorite
Bookmark
Email This
Hits: 3527 Comments (17)
![]() Nice
written by Canadian Pharmacies Online , May 26, 2010 Great topic and post, as we were just talking about what things can happen in the medicine industry. Also we will submit your article to our social network and our twitter, thanks and please post our comment, as we will put a link as well on our blog to your article. Thanks Will
report abuse
vote down
vote up
Votes: +0
birkenstock shoes
written by birkenstock , May 29, 2010 When you are on a holiday in some seaside resort where you will hike and walk on cliffs, Birckenstock is one of the brands to which you turn your attention to find some slippers or flip-flops that make a holiday in comfort and without pain in the feet after a romantic walk on the rocks.Birkenstocks is the well-known German footwear brand: Birkenstock shoes, Birkenstock sandals and Birkenstock clogs.Birkenstock Gizeh is a flattering flip-flop style with a leather upper that will look great with shorts, jeans or dresses, at the same time, it has an irresistible air between the tourist and hiking, and you can be sure that the evening will have no pain, given the high quality these shoes.
report abuse
vote down
vote up
Votes: +0
air max 2009
written by air max 2009 , May 31, 2010 are you looking for a air max 2009?
here are not only offer the nike free shoes ,but aslo for thenew lebron VII shoes report abuse
vote down
vote up
Votes: +0
...
written by mbt , June 18, 2010 最近、MBTシューズ東京でも人気のようだ
��私もMBT CHAPA が頻繁に靴を履いている、名前は優れて
��ます。MBTはMasai Barefoot Technologyで
。 アフリカのマサイ族の人々がどのように
��平坦ではないとソフトは裸足地面の
�� �歩くために歩いて、彼らはさらは、な
MBT靴技術開発と歩いて、それらを再現す
��。mbt mbtmbt 靴 mbt 靴mbtシューズ mbtシューズmbt
report abuse
vote down
vote up
Votes: +0
the Ubuntu 8.04 repositories ...
written by coach purses , June 19, 2010 the Ubuntu 8.04 repositories only have a package for Eclipse 3.2 - therefore we must install Eclipse manually.
report abuse
vote down
vote up
Votes: +0
Cheap San Francisco 49ers Jerseys
written by sexy bikinis , June 24, 2010 It is not the NFL Jerseys critic who counts,not the man who points out how the strong man stumbles,the doer of deeds could have sexy bikinis sale done them better. The credit belongs to the man who is actually in the arens,whose face is marred by dust and sweat and blood.
report abuse
vote down
vote up
Votes: +0
mbt shoes
written by mbt shoes , June 29, 2010 The credit belongs to the man who is actually in the arens,whose face is marred by dust and sweat and blood.
The ugg boots[/url report abuse
vote down
vote up
Votes: +0
...
written by mbt shoes , June 29, 2010 here are not only offer the nike free shoes ,but aslo for thenew lebron VII shoes
ugg boots report abuse
vote down
vote up
Votes: +0
Marni handbags
written by Chloe handbags , July 06, 2010 You knowChloe handbags, you can buy replica watches handbags from online fashion stores? Graham watchesThese designer handbags replicas of circumstances to do this work, they look identical, the same quality,designer watches but they are here. They are completely lawful,Prada handbags because they don't use the brand and designer names. designer watchesWhy spend a lot of money when you can get movado watchesthe same thing, replica watchesbasically next?Some people have become so enthusiastically copy handbag thought they order Mulberry handbagsbatch production, wholesale handbags and copy friends in the flea market, a flea marketMarni handbags. Even if prices, a handbag is a little money of a designer. I paid $19 for a handbag, it is still going strongBreguet watches coach, three years later. Rado watchesNo one knew me to designer handbags,Marni handbags no one is a copy of any more clever!swiss watches
report abuse
vote down
vote up
Votes: +0
christian louboutin
written by christian shoes , July 08, 2010 We all like your shop,we can buy lots of shoes here.Such as
christian louboutin christian louboutin shoes .Can I do for you ? report abuse
vote down
vote up
Votes: +0
fgfjh
written by dual sim mobile , July 08, 2010 I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon.
report abuse
vote down
vote up
Votes: +0
tytu
written by ap2 irons , July 08, 2010 Me and my friend were arguing about an issue similar to this! Now I know that I was right. lol! Thanks for the information you post.
report abuse
vote down
vote up
Votes: +0
d&g handbags
written by d&g handbags , July 12, 2010 D&G handbags develop qulity for discerning lady.Find the new collection of d&g handbags on b2chandbag.com,The best quality of d&g bags
online.Welcome to enjoy discount d&g bags for free shipping,price guarantee.cheap and designer d&g handbags sale 2010. report abuse
vote down
vote up
Votes: +0
Cheap GHDs
written by Cheap GHDs , July 17, 2010 Cheap ghds is is provided purely as an information based service.
Cheap GHDs We provide information, specification, and price comparisons of ghd products, both promoting them and helping you find the best online prices from reputable retailers bringing you the cheapest ghds online. GHD Straighteners We try to ensure that information on this website is as accurate as possible, GHD Colour Collection however we accept no responsibility for any errors on this website whatsoever. This website is updated throughout the day, GHD IV Styler every day to ensure that the information you see is as accurate as possible. GHD Precious Gift Set This site is in no way owned by or affiliated with ghd and is an unofficial ghd price comparison website. GHD IV Styler Dark All images, logos and trademarks belong to their respective owners. GHD Radiance Benefit Set By using this website you are agreeing to our Privacy policy and Terms & Conditions. GHD Hair Straightener GHD on sale GHD IV Salon Styler GHD IV Mini Styler GHD IV Gold Styler GHD Kiss IV Styler GHD Pure IV Styler GHD Purple IV Styler GHD Black IV Styler GHD Benefit Styler GHD Rare Styler GHD Pink Styler report abuse
vote down
vote up
Votes: +0
...
written by ugg boots , July 20, 2010 Well , the view of the passage is totally correct ,your details is really reasonable and you guy give us valuable informative post,I totally agree the standpoint of upstairs.air max running I often surfing on this forum when I m free and I find there are so much good information we can learn in this forum!
report abuse
vote down
vote up
Votes: +0
reply this topic
written by SheltonEunice , July 27, 2010 I think that to get the mortgage loans from creditors you ought to present a great reason. However, once I've received a college loan, just because I wanted to buy a bike.
report abuse
vote down
vote up
Votes: +0
New Era Hats written by New Era Hats , July 28, 2010 I recently came across your blog and have been reading along.
report abuse
vote down
vote up
Votes: +0
Write comment
|