290 likes | 459 Views
Eclipse, Android and “Hello, World!!!”. By, Sumanth Meda Jayaprakash. Eclipse IDE. Written in Java and an open source. Flexible, with suitable plug-ins can run programs in various languages like C, C++, COBOL, Perl, Python, PHP, Ruby etc. Features like, Syntax highlighting editor
E N D
Eclipse, Android and “Hello, World!!!” By, SumanthMedaJayaprakash
Eclipse IDE Written in Java and an open source. Flexible, with suitable plug-ins can run programs in various languages like C, C++, COBOL, Perl, Python, PHP, Ruby etc. Features like, Syntax highlighting editor Source level debugger Class navigator Code refactoring Supports unit testing with JUnit
Installation Requirement: JDK Usage of Eclipse as a JDE is explained here www.eclipse.org/downloads/ Download Eclipse IDE for Java developers Unpack it to a directory, Ready to start!
Starting Eclipse Click on “eclipse.exe” Set workspace (Place where you store all of your Java and Android projects)
… This is the welcome page Close the welcome page by clicking the cross mark next to “welcome”
Start up page This is the start up page Eclipse is now ready to be used!!
Downloading Android SDK Go to www.developer.android.com/sdk/index.html It will take a while to install completely
ADT Plug-in for Eclipse IDE Start Eclipse, select Help>Install New Software Click Add in the top right corner
ADT Plug-in … In “Add Repository” dialog box Enter “ADT Plugin” for the name And https://dl-ssl.google.com/android/eclipse/ Click “OK”
ADT Plug-in … In “Available Software” dialog box, select the checkbox next to “Developer Tools” Click “Next”
ADT Plug-in … You will see the list of tools to be downloaded. Click “Next”
ADT Plug-in … Read and accept the license agreement Click “Finish”
ADT Plug-in … When the installation completes, restart Eclipse
Configuring ADT Plug-in Configure to make Eclipse point to the Android SDK directory Select Window>Preferences to open preference panel Select “Android”
Configuring … For the SDK location, click on “Browse” and locate your downloaded SDK directory Click “Apply”, then “OK”
Create an AVD In Eclipse, Choose Window>Android SDK and AVD Manager Select “Virtual devices” in the left panel Click on “New”
AVD … Give a name, such as my_new_avd Choose a target (platform you want to run your emulator) Size is the amount of memory you want to allocate for your device Click “Create AVD”
New Android Project In Eclipse, select File> New> Project If ADT Plug-in is successfully installed, the resulting dialog box will have a folder by name “Android” Choose “Android project” Click “Next”
Hello, World!!! New Android Project Window Project name: HelloWorld Create New or Create from existing source Select a target from the list of version available
… Package namespace that you want your source code to reside Min SDK version specifies the minimum API level required by your application