Android Technology – Packaging and Life cycles

14
Prateek Aggarwal/SAP Custom Development Android Technology – Packaging and Life cycles

Transcript of Android Technology – Packaging and Life cycles

Prateek Aggarwal/SAP Custom Development

Android Technology – Packaging and Life cycles

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 2Internal

Agenda

What is Android ? Android Features Android Architecture Reference Links Project Structure Android Components Activity Life Cycle Service Life Cycle Android Debug Bridge Debugging and Packaging Q & A

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 3Internal

What is Android ?

A Software platform and operating system for mobile.

Based on the Linux kernel.

Android was found way back in 2003.

It was developed in Palo Alto, California.

Android was developed by the Andy Rubin, Rich Miner, Nick Sears and Chris White.

Android was purchased by the GOOGLE in AUGUST,2005 for 50 million $.

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 4Internal

Android Features

Application Framework

Dalvik virtual machine

Integrated (webkit) browser

2D and 3D graphics APIs with HW

SQLite

Video and audio codecs

Bluetooth, EDGE, 3G, and WiFi

Camera, GPS, compass, and accelerometer

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 5Internal

Android Architecture

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 6Internal

Reference Links

Development Tools :

https://developer.android.com/sdk/index.html#Other

Eclipse

Android Plugin (ADT)

Android SDK

Android SDK Manager

Developer’s Guide

http://developer.android.com/guide/index.html

What’s New in 5.0 Lollipop :

https://www.youtube.com/watch?feature=player_embedded&v=um1S2u022HA

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 7Internal

Project Structure

src – your source code

gen – auto-generated code (usually just R.java)

Included libraries (jars)

Resources

• Drawables (like .png images)

• Layouts

• Values (like strings)

Manifest file

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 8Internal

Android Components

Activity

http://developer.android.com/guide/topics/fundamentals/activities.html

Service

http://developer.android.com/guide/topics/fundamentals/services.html

Content Providers

Broadcast Receivers

Android in a nutshell:

http://developer.android.com/guide/topics/fundamentals.html

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 9Internal

Activity Life Cycle

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 10Internal

Service Life Cycle

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 11Internal

Android Debug Bridge

Used for a wide variety of developer tasks Read from the log file Show what android devices are available Install android applications (.apk files)

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 12Internal

Debugging and Packaging

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 13Internal

Q&A

© 2014 SAP SE or an SAP affiliate company. All rights reserved.

Thank you

Contact information:

Prateek AggarwalMobility ConsultantSAP Labs India, Bangalore