0% found this document useful (0 votes)
4 views24 pages

Android Workshop Lab

The document outlines the requirements and steps for setting up an environment for Android development, including the installation of Java SDK, Eclipse IDE, and Android SDK. It provides detailed instructions on configuring the IDE for Android development and integrating the Android SDK with Eclipse. Additionally, it briefly discusses the project structure of an Android application and the ease of writing Android applications in Java.

Uploaded by

mubarakengg.it
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views24 pages

Android Workshop Lab

The document outlines the requirements and steps for setting up an environment for Android development, including the installation of Java SDK, Eclipse IDE, and Android SDK. It provides detailed instructions on configuring the IDE for Android development and integrating the Android SDK with Eclipse. Additionally, it briefly discusses the project structure of an Android application and the ease of writing Android applications in Java.

Uploaded by

mubarakengg.it
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 24

Advantages of Android

Setting up Environment for Android Development


Requirements

 Java SDK > 1.6

Ref : http://www.oracle.com/technetwork/java/javase/downloads/index.html

 Android SDK

Ref : http://developer.android.com

 Eclipse with ADT plug-in

Ref : http://www.eclipse.org/downloads
Java SDK

Download the recent version of Java SE

3
Eclipse IDE

Download Eclipse for


Java Developers

4
Android SDK

Download Android SDK for Windows

5
Its time to setup the Environment

Three Simple Steps:

> Install the Java SDK in your machine


> Install the Eclipse IDE in your machine
> Configure your Eclipse IDE for Android Development and
integrate you Android SDK to it

And That’s It!!! You are ready to go.

6
Configuring IDE for Android Development

Launch Eclipse and Click on Help  Install New Software

7
Configuring IDE for Android Development

In the new Dialog Box that appears, Click on Add Button

8
Configuring IDE for Android Development

In the Location Textbox : https://dl-ssl.google.com/android/eclipse/

9
Configuring IDE for Android Development

Select all the Developer tools available and then follow


the installation process

10
Configuring IDE for Android Development

Installation in progress

11
Integrating Android SDK with Eclipse

Click on Window  Preferences


12
Integrating Android SDK with Eclipse

Set the Android SDK location and Click OK

13
Android SDK

• Class Library
• Developer Tools
 dx – Dalvik Cross-Assembler
 aapt – Android Asset Packaging Tool
 adb – Android Debug Bridge
 ddms – Dalvik Debug Monitor Service
• Emulator and System Images
• Documentation and Sample Code

14
Now its time to get deeper into the Android Architecture

Copyright protected © Payoda Technologies 15


Moving Ahead

Now lets move into the project structure of an


Android Application

Shall We?

16
Project Structure

Version over
which the app
Project Name is built upon

Metadata File

17
Source Folder Structure

Source Folder
Package Name

Source Code Java


Files

18
Gen Folder Structure

Gen Folder Java Resource (R) file

> This is where code is generated for all the resources defined in your
res folder.

> This is how you can access layouts and controls defined within your
code.

19
Bin Folder Structure

Generated by Compiler
Contains all the .class
files to produce .apk file

20
Exploring Resource Folder

Images
UI Layouts
(Portrait and Landscape)

Constants

21
Android makes mobile Java easier

Well, sort of…


Android applications are written in Java

package com.google.android.helloactivity;

import android.app.Activity;
import android.os.Bundle;

public class HelloActivity extends Activity {


public HelloActivity() {
}
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.hello_activity);
}
}
Thank You!!!

24

You might also like