Android workshop

25
Android Workshop Explore, Learn and Design By Sagar Patel

description

A workshop on "Android Application Developement" for begineers.

Transcript of Android workshop

Page 1: Android workshop

Android WorkshopExplore, Learn and Design

By Sagar Patel

Page 2: Android workshop

Why an EC fellow should develop app

• Embedded Engineer• Hardware optimization for Application life

cycle• Link between pure Hardware engineer and

pure IT engineer• Entrepreneurs are focusing on Mobile

Application

Page 3: Android workshop

Why should I go for Android?

Page 4: Android workshop

Numbers

• Worldwide 700 million smartphones sold in 2012.

• 0.5 billion Smartphones belong to Android with around 70% market share globally.

Page 5: Android workshop

Where to look?

Page 6: Android workshop

How android phone works?

InputTouch

OutputView

Page 7: Android workshop

Android MVC

Page 8: Android workshop

Development

• I/O Interface or User InterfaceXML Layout

• Database updateXML Resources

• ControllerJava Classes

• Layout between JavaAndroid Manifest file

Page 9: Android workshop

Let’s Build First Application

Page 10: Android workshop

Tools required

• Android SDK (Software Development Kit)http://developer.android.com/sdk/index.html

• ADT Plug In

http://developer.android.com/tools/sdk/eclipse-adt.html

Page 11: Android workshop

Eclipse

• Start new project by File -> New -> Android Application Project.

• Select the Appropriate API version and package name for your project.

• Click on Next. Again click on next.• Select the launcher icon if you want.• For Activity select Blank Activity and click on

next and then finish.

Page 12: Android workshop

What do all this file do?• MainActivity

– Starting point of your application– Responds to events, clicks and

switches between activities

• Layout Files– GUI for your application– Keeps Database

• Android Manifest– Keeps track of Layouts and Java files– It contains the permission for other

interfaces like camera, memory card, Bluetooth, GPS, Internet Access.

Page 13: Android workshop

Create an Android Virtual Device

• Click on AVD Icon :

• Windows -> AVD Manager -> New.

Page 14: Android workshop
Page 15: Android workshop

Android Phone can be used(Much Faster)

Page 16: Android workshop

Running your First App

• Click the project folder so that it is highlighted (very important . You must run your app from here)

• Run as an Android App• The app will install on your android virtual device• Find your app name by clicking the apps icon and

start it

Page 17: Android workshop

App on Emulator

Page 18: Android workshop

Let’s Hack It

• Changing the Hello World by “Welcome Developers”

Page 19: Android workshop

Adding Interactions (Button)

• Button is used for input from User• It is designed in XML• Let’s Add button to start new Activity

Page 20: Android workshop

Adding some Maths

Page 21: Android workshop

Nice Job!!!

• Made our First Application.• Test app on Virtual Device.• Directly debug on mobile.

Page 22: Android workshop

Acknowledgement

• Special Thanks for Prof. Akash Macwan• Thanks to Prasann Shukla

Page 23: Android workshop

Android Help

• Developer.android.com• TheNewBoston open Source tutorials on

Android

Page 24: Android workshop

Contact

• Mobile: +91 89054 50243

[email protected]

• Blog: Creat-Tricks.blogspot.com

• YT Channel : Sagar Patel

Page 25: Android workshop

Thank You