+ All Categories
Home > Education > Introduction to android development

Introduction to android development

Date post: 10-May-2015
Category:
Upload: prof-erwin-globio
View: 3,424 times
Download: 0 times
Share this document with a friend
Description:
Do you want to know the secrets of Android Mobile Programming and Development and use it for the advancement of your career in IT? Do you have problems in your thesis or research about Mobile apps or games? Here is an instant solution for your problem. Avail the Android Mobile Programming and Development Training package of Prof Erwin Globio and get free tips about Android Mobile Platform Secrets. For more free information about Android and Android Training visit the following sites: http://erwinglobio.sulit.com.ph/http://erwinglobio.multiply.com/ http://erwinglobio.wordpress.com/. You may contact the Android Trainer at 09393741359 or 09323956678. Call now and be one of the Android Experts.
Popular Tags:
43
Company LOGO Mobile Innovations Prof. Erwin M. Globio, MSIT Resource Speaker
Transcript
Page 1: Introduction to android development

Company

LOGO

Mobile Innovations

Prof. Erwin M. Globio, MSIT

Resource Speaker

Page 2: Introduction to android development

APP–Market Fit

PLATFORM (Android, Bada, Java, Symbian, Maemo, Blackberry; phone exclusive or open)

PHONE BRAND (Samsung, Nokia, Sony, LG, BB, ?)

PHONE TYPE (Feature phone, Smartphone) TELCO PLANS (variability of cost structures: voice ; text;

data per-kb, per-hr) USERS (who, using which phone, on which telco

or plan?)

Page 3: Introduction to android development

Criteria for Good Apps

Well-defined target market; (link to intangible qualities) Functionality: runs successfully and with ease on

Android mobile phones, does what it’s supposed to do; 

Uniqueness in its application; doing something out of the common 

Creativity in design and in the use of available technologies( UI, graphics, etc)

Usefulness in addressing users’ needs and problems, with high potential for adoption by customers 

Usability, interface and navigation designed for ease and comfort of user

Platform and modular design.

Page 4: Introduction to android development

Intangible Qualities of Good Products

What is its magnet – why will it attract the user?

What is its anchor – what will hold the user to it?

Does it have a profit engine for the user – will it make the relationship pay?

How is it spiced it up to make for a satisfying customer experience?

Page 5: Introduction to android development

Business Models

Sale of app Share of telco billings (voice, text,

data) Subscription (per-use, per month) % of sales Sponsorship or ads (Paid web hosting – service provider

or cloud)

Page 6: Introduction to android development

Company

LOGO

Introduction to Android Development

Page 7: Introduction to android development

Topics to be discussed...

Introduction to the Android Platform Overview of the Android SDK in Eclipse Working with the User Interface Sample Applications

Page 8: Introduction to android development

What is Android?

Android is a software stack for mobile devices that includes an operating system, middleware and key applications.

Page 9: Introduction to android development

What are the features of Android?

Application framework Dalvik virtual machine Integrated browser Optimized graphics SQLite Media support GSM Telephony Bluetooth, EDGE, 3G, and WiFi Camera, GPS, compass, and accelerometer Rich development environment

Page 10: Introduction to android development

Android Architecture

Page 11: Introduction to android development

Working with Android Development Tools (ADT)

The Android Development Tools (ADT) plugin for Eclipse adds powerful extensions to the Eclipse integrated development environment.

It gives you access to other Android development tools from inside the Eclipse IDE.

It provides a New Project Wizard It automates and simplifies the process of building your Android application.

It provides an Android code editor that helps you write valid XML for your Android manifest and resource files.

It will even export your project into a signed APK, which can be distributed to users.

Page 12: Introduction to android development

Installing ADT

To install in Eclipse 3.5 (Galileo)1. Start Eclipse, then select Help> Install New Software2. In the Available Software dialog, click Add....3. In the Add Site dialog that appears, enter a name for the

remote site (for example, "Android Plugin") in the "Name" field.

4. Enter location https://dl-ssl.google.com/android/eclipse/5. Back in the Available Software view, you should now see

"Developer Tools" added to the list. Select the checkbox next to Developer Tools, which will automatically select the nested tools Android DDMS and Android Development Tools. Click Next.

6. In the resulting Install Details dialog, the Android DDMS and Android Development Tools features are listed. Click Nextto read and accept the license agreement and install any dependencies, then click Finish.

7. Restart Eclipse.

Page 13: Introduction to android development

What do you get?

Page 14: Introduction to android development

Working with Eclipse (New Project)

Page 15: Introduction to android development

Working with Eclipse (New Project)

Page 16: Introduction to android development

Working with Eclipse (New AVD)

Page 17: Introduction to android development

Application Fundamentals

Applications are written using Java The Android Asset Packaging Tool

generates apk (Android Package) files containing the code and any data and resources needed

Each application runs in its own Linux process

Each application has its own VM Each application has its own user id,

permissions are set accordingly

Page 18: Introduction to android development

Application Components

A central feature of Android is that one application can make use of elements of other applications (provided those applications permit it)

Android applications don't have a single entry point for everything in the application (no main() function, for example)

They have essential components that the system can instantiate and run as needed

Page 19: Introduction to android development

Application Components

Activities - An activity presents a visual user interface for one focused endeavor the user can undertake.

Services - A service doesn't have a visual user interface, but rather runs in the background for an indefinite period of time.

Broadcast Receivers - A broadcast receiver is a component that does nothing but receive and react to broadcast announcements

Content Providers - A content provider makes a specific set of the application's data available to other applications. The data can be stored in the file system, in an SQLite database, or in any other manner that makes sense.

Intent - An intent is an Intent object that holds the content of the message

Page 20: Introduction to android development

Let’s create our first application

Page 21: Introduction to android development

The Application Manifest

Page 22: Introduction to android development

The Application Manifest

Page 23: Introduction to android development

The Application Manifest

Page 24: Introduction to android development

The Application Manifest

Page 25: Introduction to android development

The Application Manifest

Page 26: Introduction to android development

Looking at the project (Strings.xml)

Page 27: Introduction to android development

Looking at the project Layout(main.xml)

Page 28: Introduction to android development

Looking at the project (main.java)

Page 29: Introduction to android development

Starting with an Activity

The main starting point of most applications There is no concept of “main” program Each activity can be executed or invoked at any

time One application can have multiple “activities” An example of activity would be “Searching for

an application in the store” An Activity can have several “Views” or “View

Groups” to define its user inteface.

Page 30: Introduction to android development

Activity Lifecycle

Page 31: Introduction to android development

Activity Source

package org.feueac.android;

import android.app.Activity;import android.os.Bundle;

public class Main extends Activity {@Override

public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); }}

Page 32: Introduction to android development

What is R.layout.main?

<?xml version="1.0" encoding="utf-8"?><LinearLayout

xmlns:android="http://schemas.android.com/apk/res/android"

android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" ><TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /></LinearLayout>

Page 33: Introduction to android development

Views in an Activity

The user interface is built using View and ViewGroup objects

Basic units of user interface expression on the Android platform

View class serves as the base for subclasses

ViewGroupclass serves as the base for subclasses called "layouts"

Page 34: Introduction to android development

View Hierarchy

Activity must call the setContentView()

Page 35: Introduction to android development

The different layouts

Linear Layout Relative Layout Table Layout Grid View Tab Layout List View

Page 36: Introduction to android development

Handling Events in an Activity

public class main extends Activity implements OnClickListener

Button myButton = (Button) findViewById(R.id.hello_button);myButton.setOnClickListener(this);

@Overridepublic void onClick(View v) {}

Page 37: Introduction to android development

Sample Application

Page 38: Introduction to android development

Android Training

Android Training of Prof. Erwin Globio Avail of a 50 hour extensive hands on

training on Android Mobile App and Games Development.

Free 10 hours of training if you avail the 50 hour extensive Android training.

Course materials, software and certificate are included.

Enroll now, call 09393741359 for inquiries.

Page 39: Introduction to android development

Android Training

50 hour Android Training plus free 10 hours for as low as Php 15,000.00

Enroll Now and become an Android Developer.

Page 40: Introduction to android development

Java Training

Java Training of Prof. Erwin Globio Avail of a 40 hour extensive hands on

training on Java Programming. Free 10 hours of training if you avail the 40

hour extensive Java training. Course materials, software and certificate

are included. Enroll now, call 09393741359 for inquiries.

Page 41: Introduction to android development

Java Training

40 hour Java Training plus free 10 hours for as low as Php 10,000.00

Enroll Now and learn the many secrets of Java Programming.

Page 42: Introduction to android development

Add me on facebook at [email protected]

Like Android Page on my Facebook Account.

Page 43: Introduction to android development

Thank you!


Recommended