18
An introduction to Android Development Melson J Zacharias Perleybrook Labs LLC @mjzacharias

Introduction to Android development - CEC ISQIP 2014

Embed Size (px)

DESCRIPTION

Slides I used for the Android Development Workshop at College of Engineering, Chengannur

Citation preview

Page 1: Introduction to Android development -  CEC ISQIP 2014

An introduction to Android Development

Melson J Zacharias Perleybrook Labs LLC @mjzacharias

Page 2: Introduction to Android development -  CEC ISQIP 2014

OVERVIEW

• Java basics

• Evolution of android

• Development in android

Page 3: Introduction to Android development -  CEC ISQIP 2014

JAVA?

Page 4: Introduction to Android development -  CEC ISQIP 2014
Page 5: Introduction to Android development -  CEC ISQIP 2014

HISTORY• James Gosling 1995

• WORA

• Compiled & interpreted

• Slow

Page 6: Introduction to Android development -  CEC ISQIP 2014

ANDROID?• Android Inc.

• Open Handset Alliance

• AOSP

• Google

Page 7: Introduction to Android development -  CEC ISQIP 2014
Page 8: Introduction to Android development -  CEC ISQIP 2014
Page 9: Introduction to Android development -  CEC ISQIP 2014

Activities

public class MainActivity extends Activity { !}

Page 10: Introduction to Android development -  CEC ISQIP 2014
Page 11: Introduction to Android development -  CEC ISQIP 2014

LIST VIEW

• Messaging

• Contacts

• Email

Page 12: Introduction to Android development -  CEC ISQIP 2014

Services

public class MyService extends Service { }

Page 13: Introduction to Android development -  CEC ISQIP 2014

Broadcast receivers

public class MyReceiver extends BroadcastReceiver { !}

public class MyContentProvider extends ContentProvider { !}

Content providers

Page 14: Introduction to Android development -  CEC ISQIP 2014

• Fragments

• Views

• Layouts

• Intents

• Resources

• Manifest

Additional components

Page 15: Introduction to Android development -  CEC ISQIP 2014

SAVING DATA?

• SharedPreferences

• SQLite

Page 16: Introduction to Android development -  CEC ISQIP 2014

DATA EXCHANGE?

• XML

• JSON

Page 17: Introduction to Android development -  CEC ISQIP 2014

BACKGROUND OPERATIONS?

AsyncTask to the rescue!

• onPreExecute

• doInBackground

• onPostExecute

Page 18: Introduction to Android development -  CEC ISQIP 2014

THANK YOU! :)

@mjzacharias | http://thenullpointer.in | fb.com/mjzacharias