Android Programming.

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.
Delrieu Marjorie Loiseau Pierre
David Angulo Rubio ANDROID OS Open Software Platform for Mobile Devices.
Android architecture overview
Programming Mobile Applications with Android
Joemarie Comeros Amparo Android Development Orientation for Starters.
Hello world Follow steps under the sections “Create an AVD” and “Create a New Android Project” at
Application Fundamentals. See: developer.android.com/guide/developing/building/index.html.
DEPARTMENT OF COMPUTER ENGINEERING
User Interface Android Applications. Activities An activity presents a visual user interface. Each activity is given a default window to draw in. The.
Google Android as a mobile development platform T Internet Technologies for Mobile Computing Olli Mäkinen.
Basic, Basic, Basic Android. What are Packages? Page 346 in text Package statement goes before any import statements Indicates that the class declared.
Android Application Development with Java UPenn CS4HS 2011 Chris Murphy
ANDROID PROGRAMMING MODULE 1 – GETTING STARTED
6: Getting Started with Android. Android Android Inc. was initially started in 2003 It was acquired by Google in 2005 The hardware side of Android is.
UFCFX5-15-3Mobile Device Development Android Development Environments and Windows.
@2011 Mihail L. Sichitiu1 Android Introduction Hello World.
Emerging Platform#4: Android Bina Ramamurthy.  Android is an Operating system.  Android is an emerging platform for mobile devices.  Initially developed.
Android Programming. Outline Preparation Create new project Build and Run a project Debug a project Deploy on devices.
Android Application Development 2013 PClassic Chris Murphy 1.
Chien-Chung Shen Manifest and Activity Chien-Chung Shen
Mobile Programming Lecture 1 Getting Started. Today's Agenda About the Eclipse IDE Hello, World! Project Android Project Structure Intro to Activities,
Introduction to Android Programming Content Basic environmental structure Building a simple app Debugging.
Cosc 5/4730 Information, Resources, and basic GUI concepts.
Hello world Follow steps under the sections “Create an AVD” and “Create a New Android Project” at
Intro to Android Development Ben Lafreniere. Getting up and running Don’t use the VM! ials/hello-world.html.
ANDROID Presented By Mastan Vali.SK. © artesis 2008 | 2 1. Introduction 2. Platform 3. Software development 4. Advantages Main topics.
1 Announcements Homework #2 due Feb 7 at 1:30pm Submit the entire Eclipse project in Blackboard Please fill out the when2meets when your Project Manager.
CE Applied Communications Technology Android lecture 2 - Structures Android File structure Resources Drawables Layout Values R Class Manifest Running.
Eclipse Tutorial Barrett Summer Scholars 2011 Sustainable Engineering: Learning to Engineer Truly Green Products.
© 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.
1 Introducing Activity and Intent. 2 Memory LinearLayout, weight=2 LinearLayout, weight=1 TextView ListView.
Announcements Homework #2 will be posted after class due Thursday Feb 7, 1:30pm you may work with one other person No office hours tonight (sorry!) I will.
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.
Mobile Software Development for Android - I397 IT COLLEGE, ANDRES KÄVER, WEB:
Unit IV Android Overview. WHAT IS ANDROID?  A Software platform and operating system for mobile.  Based on the Linux kernel.  An open source  Android.
CMPE419 Mobile Application Development Asst.Prof.Dr.Ahmet Ünveren SPRING Computer Engineering Department Asst.Prof.Dr.Ahmet Ünveren
Introduction to Android Chapter 1 1. Objectives Understand what Android is Learn the differences between Java and Android Java Examine the Android project.
Mobile Device Development
Workshop by T.Naveen sai kumar.
Lab7 – Appendix.
Android Application Development
Android Programming - Features
Lecture 3 Zablon Ochomo Android Layouts Lecture 3 Zablon Ochomo
Android Introduction Hello World
Android Application Development 1 6 May 2018
Android N Amanquah.
Android Introduction Hello World.
Android.
Development-Introduction
CA16R405 - Mobile Application Development (Theory)
תכנות ב android אליהו חלסצ'י.
Mobile Device Development
Android SDK & App Development
Android GUI Project John Hurley CS 454.
CIS 470 Mobile App Development
Application Development A Tutorial Driven Course
Android GUI Project John Hurley CS 454.
CMPE419 Mobile Application Development
CIS 470 Mobile App Development
Emerging Platform#3 Android & Programming an App
CMPE419 Mobile Application Development
Android Development Introduction to Android Development 2011/01/16
CMPE419 Mobile Application Development
CA16R405 - Mobile Application Development (Theory)
CIS 694/EEC 693 Android Sensor Programming
Presentation transcript:

Android Programming

Overview What is Android? Why teach Android? What do you need in order to teach Android? Hello, Android Links for android beginners: https://www.udacity.com/courses/android Andriod Basics: (1) User Interface, (2) Multicscreen Apps, (3) User Input, (4) Data Storage, (5) Networking

What is Android?

Android Includes a Java API for developing applications It is not a device or product

The Android Open Source Project (AOSP) An open source Linux-based operating system intended for mobile computing platforms An initiative led by Google Makes the source code of the Android OS available for all Read, review, and modify the code to your liking The main goals of the AOSP Provide a set of compatibility guidelines—for OEMs (Original Equipment Manufacturers) and device manufacturers—for porting Android to custom devices Build accessories that comply with Android’s open accessory standard Allows OEMs and manufacturers to deliver a standard experience Making radical changes to that experience introduces fragmentation in the marketplace and in competing Android distributions.

The Open Handset Alliance Android, Inc Created by Andy Rubin, Acquired by Google in 2005. Open Handset Alliance (OHA) Formed in November 2007 Business alliance composed of mobile players Chip makers Handset manufacturers Software developers Service providers OHA began developing open standards based on Android, Inc. technologies. The result is the Android project. Google provided the initial code, online documentation, tools, forums, and SDK.

Manufacturers: Designing Android Devices Samsung Motorola Dell Sony Ericsson HTC LG Amazon Intel Texas Instruments ARM NVIDIA Qualcomm Here is just a partial list of manufacturers of Android devices.

Why teach Android?

Engaging Students with Android Android has a lot of “buzz” now Newness Coolness Googleness UI and graphics made simple(r) Advanced Java skills

What Skills Will Students Learn? Reinforce the basics: OOP, decomposition, etc. Separation of UI design and functionality XML and resource files Events and Listeners Callback methods Threads

Android vs. iPhone Java vs. Objective-C Direct install vs. Marketplace vs. App Store Open source?

What do you need in order to teach Android?

What Should Students Already Know? Java! inheritance, method overriding interfaces, casting exceptions debugging reading API documentation Eclipse easy to pick up quickly, though

Do I Need Phones? The emulator that is part of the Android toolset for Eclipse is quite good (though a bit slow) You may be able to get free “developer phones” from Google

Online Resources developer.android.com code.google.com/p/apps-for-android/ stackoverflow.com videos from Google I/O conferences

“Hello, Android”

Creating Your First(?) Android App Set up your development environment Create a new Android project in Eclipse Run it in the emulator Hilarity ensues

1. Set Up Your Android Environment http://developer.android.com/sdk Install Android Studio with Android SDK (Android libraries) Install JDK if it is not in your computer Create AVD (Android virtual device)

2. Create an Android Project File → New → Project Select “Android Project” Fill in Project details...

Directory name Android version Java package Name that appears on device Class to automatically create

Source code Auto-generated code String constants UI layout Configuration

3. Run the Android Application Run → Run (or click the “Run” button) Select “Android Application” The emulator may take a few minutes to start, so be patient! You don't need to restart the emulator when you have a new version of your application

HelloAndroid.java 1 public class HelloAndroid extends Activity { 2  /** Called when the activity is first created. */ 3    @Override 4    public void onCreate(Bundle savedInstanceState) 5 { 6      super.onCreate(savedInstanceState); 7        setContentView(R.layout.main); 8    } 9 }

main.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout 3 xmlns:android="http://schemas.android.com/apk/res/android" 4 android:orientation="vertical" 5 android:layout_width="fill_parent" 6 android:layout_height="fill_parent" 7 > 8 <TextView 9 android:layout_width="fill_parent" 10 android:layout_height="wrap_content" 11 android:text="@string/hello " 12 /> 13 </LinearLayout>

strings.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <resources> 3 <string name="hello">Hello World, HelloAndroid! 4 </string> 5 <string name="app_name">Hello, Android</string> 6 </resources>

AndroidManifest.xml 1 <?xml version="1.0" encoding="utf-8"?> 3 xmlns:android="http://schemas.android.com/apk/res/android" 4 package="edu.upenn.cis542" 5 android:versionCode="1" 6 android:versionName="1.0"> 7 <application android:icon="@drawable/icon" 8 android:label="@string/app_name"> 9 <activity android:name=".HelloAndroid" 10 android:label="@string/app_name"> 11 <intent-filter> 12 <action 13 android:name="android.intent.action.MAIN" /> 14 <category 15 android:name="android.intent.category.LAUNCHER"/> 16 </intent-filter> 17 </activity> 18 </application> 19 </manifest>