Android workshop

13
Android Workshop StackOverflow Client HelloWorld Notepad tutorial -Ravi Vyas

description

Slides for a workshop I held at NIT Durgapur

Transcript of Android workshop

Page 1: Android workshop

Android Workshop

StackOverflow Client

HelloWorld

Notepad tutorial

-Ravi Vyas

Page 2: Android workshop

Who Am I

• Software Engineer at

• Co – Organizer at

Page 3: Android workshop

Why Am I here

• I was told a senior saw my talk at Droidcon and recommended my name . Thank you sir

• I evangelize Android

Previous talks : slideshare.net/ravivyas84

Page 4: Android workshop

What’s our plan • Make a simple “HelloWorld“ app to learn how to

develop for Android

• Make a simple notepad app that stores.

• Learn A few Android concepts on the way

Page 5: Android workshop

What’s Android • Android is a software stack for mobile devices that

includes an operating system, middleware and key

applications. The Android SDK provides the tools

and APIs necessary to begin developing

applications on the Android platform using the Java

programming language

Page 6: Android workshop

What is Android

Page 7: Android workshop

Android Fundamentals • Language : Java . Each process has its own virtual

machine (Dalvik VM), so an application's code runs

in isolation from other applications

• Android applications are composed of one or more

application components (activities, services,

content providers, and broadcast receivers)

• The manifest file must declare all components in the

application and should also declare all application

requirements, such as the minimum version of

Android required and any hardware configurations

required

Page 8: Android workshop

Android Components • Activities

• Services

• Content providers

• Broadcast Receivers

Page 9: Android workshop

The Manifest File • Lets the system know what components exist in the

application

• Identifies required user permissions ( e.g. read contacts , internet access )

• Declares the minimum API version

• Declare the hardware and software features used ( e.g. Camera, GPS )

• Declares application info ( e.g. name , version )

Page 10: Android workshop

Android Project Structure Project

\src \res

\drawable-ldpi

\drawable-mdpi

\drawable-hdpi

\layouts

\values

\assets \gen \Androi

d AndroidManifes

t.xml

Page 11: Android workshop

Android Hello World

Page 12: Android workshop

Android NotePad

Page 13: Android workshop

Questions & Contact info

Ravi Vyas:

• twitter.com/ravivyas84

• ravivyas.com

• Google+ ravivyas.com/+

[email protected]

• Slideshare.net/ravivyas84

Useful Sites

• d.android.com

• Stackoverflow.com

• blrdroid.org