Android SDK & App Development

Slides:



Advertisements
Similar presentations
Chapter 3: Engage! Android User Input, Variables, and Operations
Advertisements

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.
Filip Debelić What is it? Android is a mobile operating system (OS) based on the Linux kernel and currently developed by Google Android,
1 Mobile Computing Mobile First (formerly Worklight) Copyright 2015 by Janson Industries.
Android: Hello World Frank Xu Gannon University. Steps Configuration ▫Android SDK ▫Android Development Tools (ADT)  Eclipse plug-in ▫Android SDK and.
Android Application Development with Java UPenn CS4HS 2011 Chris Murphy
ANDROID PROGRAMMING MODULE 1 – GETTING STARTED
INTERNATIONAL SUMMER ACADEMIC COURSE UNIVESITY OF NIS ISAC – Android programming.
Android Application Development 2013 PClassic Chris Murphy 1.
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.
Android and Eclipse Thaddeus Diamond CPSC 112. A Quick Introduction Eclipse is an IDE (Integrated Development Environment Open Source Much more full-featured.
Android Boot Camp for Developers Using Java, Comprehensive: A Guide to Creating Your First Android Apps Chapter 9: Customize! Navigating with a Master/Detail.
Chapter 3 Navigating a Project Goals & Objectives 1.Get familiar with the navigation of the project. How is everything structured? What settings can you.
Android: versions Note that: Honeycomb (Android v3.0) A tablet-only release Jelly Bean (Android v4.1) Released on July 09, 2012.
1 Mobile Computing Monetizing An App Copyright 2014 by Janson Industries.
Intro to Android Development Ben Lafreniere. Getting up and running Don’t use the VM! ials/hello-world.html.
Tip Calculator App Building an Android App with Java © by Pearson Education, Inc. All Rights Reserved.
Basic Android Tutorial USF’s Association for Computing Machinery.
© 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.
Engage! Android User Input, Variables,
Configuring Android Development Environment Nilesh Singh.
Creating an Example Android App in Android Studio Activity lifecycle & UI Resources.
First Venture into the Android World Chapter 1 Part 2.
Introduction to Android
HW#9 Clues CSCI 571 Fall, HW#9 Prototype
© 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.
ANDROID APPLICATION DEVELOPMENT. ANDROID DEVELOPMENT DEVELOPER.ANDROID.COM/INDEX.HTML THE OFFICIAL SITE FOR ANDROID DEVELOPERS. PROVIDES THE ANDROID SDK.
1 Android Development Lean and mean introduction Based on a presentation by Mihail L. Sichitiu.
TODAY Android Studio Installation Getting started Creating your 1 st App Beginning to understanding Intents.
© 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.
Android apps development - Eclipse, Android SDK, and ADT plugin Introduction of.
Guide To Develop Mobile Apps With Titanium. Agenda Overview Installation of Platform SDKs Pros of Appcelerator Titanium Cons of Appcelerator Titanium.
Why Learn Android? Largest installation base of any operating system Over 20,000 Android devices exist Businesses will likely move more to device-based.
CHAPTER 1 part 1 Introduction. Chapter objectives: Understand Android Learn the differences between Java and Android Java Examine the Android project.
Introduction to Android Chapter 1 1. Objectives Understand what Android is Learn the differences between Java and Android Java Examine the Android project.
Android Programming.
Chapter 2: Simplify! The Android User Interface
Open Handset Alliance.
Android Application Development 1 6 May 2018
Android Moving to a second Activity
Mobile Application Development Chapter 3 [Using Eclipse Android Studio for Android Development] IT448-Fall 2017 IT448- Fall2017.
Android Studio, Android System Basics and Git
Cosc 5/4735 AdMob for Android.
Android.
Development-Introduction
Creation of an Android App By Keith Lynn
Mobile Application Development Chapter 4 [Android Navigation and Interface Design] IT448-Fall 2017 IT448- Fall2017.
Anatomy of an Android Application
Android App Computations
CIS 470 Mobile App Development
CS323 Android Model-View-Controller Architecture
CS323 Android Getting Started
Android Studio Hello World
CS5103 Software Engineering
CA16R405 - Mobile Application Development (Theory)
Building User Interfaces Basic Applications
Android Developer Fundamentals V2 Lesson 1
CA16R405 - Mobile Application Development (Theory)
Android Application Development
Android SDK & App Development
Emerging Platform#3 Android & Programming an App
Mobile Programming Dr. Mohsin Ali Memon.
Objects First with Java
CA16R405 - Mobile Application Development (Theory)
CA16R405 - Mobile Application Development (Theory)
Presentation transcript:

Android SDK & App Development CSE651C, B.Ramamurthy 9/19/2018

References Android developer documentation by Google Android Studio Essentials by Belen Cruz Zapata, Book. Also many texts available online through UB Library. CSE651C, B.Ramamurthy 9/19/2018

General Architecture of Android Application Web UI HTML Logic/functionJavaScript Resources Images/etc. App UI XML Logic/functionJava Resources Images/etc. CSE651C, B.Ramamurthy 9/19/2018

Getting Started (Pre)Install Android SDK and configure it as directed by the installation. You will need a minimal version of Java. Step 1: Open the SDK and create a new project. Step 2: Configure the project for a simple project. Step 3: Understand the various regions of the development environment. Step 4: Add a simple User Interface, with a RelativeLayout (find out about other layouts) with a “text”, “image” and a “button”– the three of the important components in a User Interface (UI) CSE651C, B.Ramamurthy 9/19/2018

Name your app: App1 CSE651C, B.Ramamurthy 9/19/2018

Select the Device & Version CSE651C, B.Ramamurthy 9/19/2018

Choose an Activity Type (Basic or Empty) CSE651C, B.Ramamurthy 9/19/2018

Customize Activity We will take the default name for this exercise and click the Finish button. SDK will auto generate a lot of code. Important components on the Project panel on the left: Manifest file Java files Res(ource) file Gradle, the build tool You will working with Res (Layout, drawable etc.) files for the UI and Java file for the control logic CSE651C, B.Ramamurthy 9/19/2018

Sample Layout Content_main.xml CSE651C, B.Ramamurthy 9/19/2018

Lets start with UI Views: TextView, ImageView Widgets: Button, EditText Layout of the various components on the UI: Different types of Layouts are available RelativeLayout Managing the limited “real-estate” of the mobile device screen Lets just run the simple project we created and check it out: What do you see on the screen? Can we modify the various items and understand a few concepts? CSE651C, B.Ramamurthy 9/19/2018

TextView <string name="hello">Hello EAP Students.</string> https://developer.android.com/reference/android/widget/TextView.html Now add this snippet to the content_main.xml <TextView android:id="@+id/hello_id" android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="@string/hello" /> Also add a resource to string.xml: <string name="hello">Hello EAP Students.</string> Run it and see…Hmm.. It is all squished to the top left due the RelativeLayout. Lets add some space…. CSE651C, B.Ramamurthy 9/19/2018

Adding Spacing & change font size android:layout_marginTop="20dp” android:textSize="32sp" CSE651C, B.Ramamurthy 9/19/2018

Add an Image <ImageView android:id="@+id/image1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/imagep1" /> Hmm.. It is not spaced right? What do you do? Add space from the top. android:layout_marginTop=“120dp” CSE651C, B.Ramamurthy 9/19/2018

Sample Projects on GitHub CSE651C, B.Ramamurthy 9/19/2018

Summary We looked at development of a sample App You can easily load it to your phone in a few simple steps, I will let you do it. (I cannot give you instructions since you may all have different phones.) Next we will look at the Java code for interacting with the UI. CSE651C, B.Ramamurthy 9/19/2018