android development basics

15
1 Android Development Basics Pramesh Gautam

Upload: pramesh-gautam

Post on 16-Jul-2015

42 views

Category:

Mobile


0 download

TRANSCRIPT

Page 1: Android development basics

1

Android Development

Basics

Pramesh Gautam

Page 2: Android development basics

2

Topics

● Introduction

● Development basics

● Demonstration

Page 3: Android development basics

3

Introduction

● Open source operating system

● Supported by OHA and maintained by google

● Beyond phones

● ART runtime environment

● API level

Page 4: Android development basics

4

Tools Used

● Java

● SQLite

● XML

● gradle(in android studio)

● Eclipse or android studio IDE

Page 5: Android development basics

5

Development

Activity(Details)

Single, focused thing that the user can do.

Layout defined in xml.

Inherits android.app.activity.

Core component of application.

Provides user intrerface.

Page 6: Android development basics

6

Development

● Lifecycle

Page 7: Android development basics

7

Development

Android Manifest

● Every app must have it.

● It names the Java package for the application

● Contains details of every activity.

● Specifies persmission.

● Declares required API.

● Lists libraries that must be linked.

● Includes other spefications of the application.

Page 8: Android development basics

Project Structure

Shown in android studio

8

Page 9: Android development basics

9

Layouts

● LinearLayout

● RelativeLayout

Page 10: Android development basics

10

LinearLayout

● A layout that organizes its children into a

single horizontal or vertical row.

Page 11: Android development basics

11

RelativeLayout

● Enables you to specify the location of child

objects relative to each other (child A to the

left of child B) or to the parent (aligned to the

top of the parent).

Page 12: Android development basics

12

Intents

● Message from one activity to another.

● Can be used to link activities.

● Useful to transfer messages between activities.

Page 13: Android development basics

13

Permissions

● Added to allow permissions to android app.

● Defined in manifest.

● Should be chosen carefully to meet

requirements.

Page 14: Android development basics

Demonstration

Shown in android studio

14

Page 15: Android development basics

Q & A

• Thank you

15