Www.greenITcenter.org DUE 0903239 Hello World on the Android Platform.

Slides:



Advertisements
Similar presentations
Android Application Development A Tutorial Driven Course.
Advertisements

Google Android Introduction to Mobile Computing. Android is part of the build a better phone process Open Handset Alliance produces Android Comprises.
Android OS : Core Concepts Dr. Jeyakesavan Veerasamy Sr. Lecturer University of Texas at Dallas
Android architecture overview
Programming with Android: SDK install and initial setup Luca Bedogni Marco Di Felice Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna.
CSS216 MOBILE PROGRAMMING Android, Chapter 3 Book: “Professional Android™ 2 Application Development” by Reto Meier, 2010 by: Andrey Bogdanchikov (
All About Android Introduction to Android 1. Creating a New App “These aren’t the droids we’re looking for.” Obi-wan Kenobi 1. Bring up Eclipse. 2. Click.
Application Fundamentals. See: developer.android.com/guide/developing/building/index.html.
Android 101 Application Fundamentals January 29, 2010.
Android: Hello World Frank Xu Gannon University. Steps Configuration ▫Android SDK ▫Android Development Tools (ADT)  Eclipse plug-in ▫Android SDK and.
Google Android as a mobile development platform T Internet Technologies for Mobile Computing Olli Mäkinen.
By: James Ondecko  What is Android?  Helpful backgrounds for Android development  Tools & Installs  Android Virtual Devices  Helpful references.
Basic, Basic, Basic Android. What are Packages? Page 346 in text Package statement goes before any import statements Indicates that the class declared.
Android Programming Beomjoo Seo Sep., 12 CS5248 Fall 2012.
Asst.Prof.Dr.Ahmet Ünveren SPRING Computer Engineering Department Asst.Prof.Dr.Ahmet Ünveren SPRING Computer Engineering Department.
ANDROID PROGRAMMING MODULE 1 – GETTING STARTED
@2011 Mihail L. Sichitiu1 Android Introduction Application Fundamentals.
INTERNATIONAL SUMMER ACADEMIC COURSE UNIVESITY OF NIS ISAC – Android programming.
Emerging Platform#4: Android Bina Ramamurthy.  Android is an Operating system.  Android is an emerging platform for mobile devices.  Initially developed.
Better reference the original webpage :
Mobile Programming Lecture 1 Getting Started. Today's Agenda About the Eclipse IDE Hello, World! Project Android Project Structure Intro to Activities,
Programming Your Android App Gourav Khadge
CS5103 Software Engineering Lecture 08 Android Development II.
© Keren Kalif Intro to Android Development Written by Keren Kalif, Edited by Liron Blecher Contains slides from Google I/O presentation.
@2011 Mihail L. Sichitiu1 Android Introduction Platform Overview.
Operating system for mobile devices with a Java programming interface. Provides tools, e.g. a compiler, debugger, device emulator, and its own Java Virtual.
Favorite Twitter® Searches App Android How to Program © by Pearson Education, Inc. All Rights Reserved.
Android Info mostly based on Pro Android 3.  User Applications  Java Libraries – most of Java standard edition ◦ Activities/Services ◦ UI/Graphics/View.
Introduction to Mobile Programming. Slide 2 Overview Fundamentally, it all works the same way You get the SDK for the device (Droid, Windows, Apple) You.
Intro to Android Development Ben Lafreniere. Getting up and running Don’t use the VM! ials/hello-world.html.
Ali Shahrokni Application Components Activities Services Content providers Broadcast receivers.
Tip Calculator App Building an Android App with Java © by Pearson Education, Inc. All Rights Reserved.
Rajab Davudov. Agenda Eclipse, ADT and Android SDK APK file Fundamentals – Activity – Service – Content Provider – Broadcast Receiver – Intent Hello World.
Mobile Application Development using Android Lecture 2.
16 Services and Broadcast Receivers CSNB544 Mobile Application Development Thanks to Utexas Austin.
#gsa2012 Android Basics By: Amr Mohsen
Android for Java Developers Denver Java Users Group Jan 11, Mike
10/10/2015 E.R.Edwards 10/10/2015 Staffordshire University School of Computing Introduction to Android Overview of Android System Android Components Component.
© 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Android Boot Camp.
Presented By: Muhammad Tariq Software Engineer Android Training course.
INTRODUCTION TO ANDROID. Slide 2 Application Components An Android application is made of up one or more of the following components Activities We will.
Android Boot Camp for Developers Using Java, 3E
COMP 365 Android Development.  Every android application has a manifest file called AndroidManifest.xml  Found in the Project folder  Contains critical.
Configuring Android Development Environment Nilesh Singh.
Android Development Environment Environment/tools Windows Eclipse IDE for Java Developers (v3.5 Galileo) Java Platform (JDK 6 Update 18) Android.
ANDROID L. Grewe Components  Java Standard Development Kit (JDK) (download) (latest version)  AndroidStudio.
First Venture into the Android World Chapter 1 Part 2.
Introduction to Android
 Installation of Android Development Environment  Creating the App with OpenGL ES API  Running the App on Emulator Android App Development.
TODAY Android Studio Installation Getting started Creating your 1 st App Beginning to understanding Intents.
Lecture 2: Android Concepts
1 Android Workshop Platform Overview. 2 What is Android?  Android is a software stack for mobile devices that includes an operating system, middleware.
Accelerometer based motion gestures for mobile devices Presented by – Neel Parikh Advisor Committee members Dr. Chris Pollett Dr. Robert Chun Dr. Mark.
The Ingredients of Android Applications. A simple application in a process In a classical programming environment, the OS would load the program code.
Android apps development - Eclipse, Android SDK, and ADT plugin Introduction of.
Introduction to Android Programming
Lecture 2: Android Concepts
Android 01: Fundamentals
Android Application Development 1 6 May 2018
Reactive Android Development
Android Studio, Android System Basics and Git
Market Share. Market Share Market Share Android Dev Basics Android apps are developed in Java and XML. The hardest part of Android dev is coming up.
Android.
MAD.
Development-Introduction
CMPE419 Mobile Application Development
Application Development A Tutorial Driven Course
Emerging Platform#3 Android & Programming an App
CMPE419 Mobile Application Development
Presentation transcript:

DUE Hello World on the Android Platform

Getting the Tools Setup Need to Install…  Eclipse (the IDE)  Android SDK  Java JDK (not just the JRE) Quick Start Guide is Here: 2

Integration 3 Then you need to integrate Eclipse and The Android Developer Toolkit adt.html

Android SDK Versions You then need to download SDK versions of Android to run your program against The Android SDK Manager in Eclipse will do this You don’t need the latest version – it’s slow API 7 (Android 2.1) is good & compatible with most devices

The AVD An Android Virtual Device (a simulator) needs to be created. You will specify this in Eclipse  Includes the features that this virtual phone will have, such as touch screen, etc.

The Tutorial 6 s/hello-world.html

The Result 7 Android Virtual Device can be a little quirky and take time to load

DUE Android Application Fundamentals

Getting the Tools Setup Assuming you have Eclipse And the SDK setup 9

Android Online Tutorial damentals.html damentals.html 10

App Fundamentals Apps are stored in an.apk file Components in a Program  Activities – most important part  Services  Broadcast Receivers  Content Providers  Intents – a message that is sent  Widgets  Notifications 11

Activities A GUI element An activity can contain views such as buttons or check boxes One Activity is designated (in the Manifest) as where to “start” the application These are the “forms” of the application – the presentation layer

Services Not part of the GUI A background process  Playing audio  Network communication  Can be spawned in another thread

Broadcast Receivers A “listener” that receives announcements  From the system – battery is low  Broadcast Receivers could notify the user of something, for example A broadcast receiver receives an “Intent” – a message, and respond to create an event- driven application

Content Providers A method of interprocess communication to make data from your app available to other apps Or, vice-versa Implemented through a ContentProvider and a ContentResolver (to get the data). Example: The Contacts list in the phone – your application could access this.

Intents The actual message that is sent  An Intent to a Broadcast Receiver might announce that a picture has been taken  You can send an Intent to another application as well.  Intents are commonly used to launch a second Activity (screen)

Widgets Visual components that can be added to the user’s home screen Special broadcast receivers

Notifications Signal a user without interrupting the current activity. Example – text message comes in. We can trigger those notifications programmatically

The Result Think about apps as a collection of these independent pieces, passing messages to one another.

DUE Application and Activity Classes

The Application Class Your app will extend the Application class Your application object is a singleton (only one object may be instantiated) 21

Application Class public class MyApplication extends Application{ private static MyApplication public final void onCreate() { super.onCreate(); // call the parent singleton = this; // any other of my code public final void onTerminate() { super.onTerminate(); // call the parent // now my code }

MyApplication class I can override…  onCreate( )  onTerminate( ) – no guarantee this gets called  onLowMemory( )  onConfigurationChanged( ) Need to call the superclass methods in each of your overridden methods Sometimes the system kills your app w/ no notice

Android Activity The basis for the application The program will start running here, and we can add user interface elements (such as Views) to the Activity This is done in xml files in the ‘res’ folder

Android Activities import android.app.Activity; import android.os.Bundle; public class MyActivity extends Activity{ // override the base class onCreate() }

Activities -> Views We need to add a view to our activity to create a GUI

Resources The /res folder contains xml files We can specify in xml  GUI elements (using xml is preferred to using code)  String constants to be used in the program  Other resources the program needs, such as sounds or images

DroidDraw DroidDraw can help with the screen layouts

Styles and Themes You can also create a style for all of the Activities in your app Similar to css for web pages hemes.html hemes.html