Android workshop

Preview:

DESCRIPTION

A workshop on "Android Application Developement" for begineers.

Citation preview

Android WorkshopExplore, Learn and Design

By Sagar Patel

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

Why should I go for Android?

Numbers

• Worldwide 700 million smartphones sold in 2012.

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

Where to look?

How android phone works?

InputTouch

OutputView

Android MVC

Development

• I/O Interface or User InterfaceXML Layout

• Database updateXML Resources

• ControllerJava Classes

• Layout between JavaAndroid Manifest file

Let’s Build First Application

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

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.

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.

Create an Android Virtual Device

• Click on AVD Icon :

• Windows -> AVD Manager -> New.

Android Phone can be used(Much Faster)

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

App on Emulator

Let’s Hack It

• Changing the Hello World by “Welcome Developers”

Adding Interactions (Button)

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

Adding some Maths

Nice Job!!!

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

Acknowledgement

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

Android Help

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

Android

Contact

• Mobile: +91 89054 50243

• Sagarpatel.9556@gmail.com

• Blog: Creat-Tricks.blogspot.com

• YT Channel : Sagar Patel

Thank You