Programming Your Android App Gourav Khadge

Slides:



Advertisements
Similar presentations
ANDROID DEVELOPMENT KELLY MCBEAN. DEVELOPMENT ENVIRONMENT OVERVIEW Eclipse Standard IDE for Developing Android Applications Install: 1.Java (JDK) – Since.
Advertisements

Joemarie Comeros Amparo Android Development Orientation for Starters.
INTRO TO MOBILE APP DEVELOPMENT CMSC 150: Lecture 34.
Programming with Android: SDK install and initial setup Luca Bedogni Marco Di Felice Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna.
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,
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.
Android Programming Beomjoo Seo Sep., 12 CS5248 Fall 2012.
ANDROID PROGRAMMING MODULE 1 – GETTING STARTED
SET UP COMPUTER ** PLEASE BE AWARE SCREENSHOTS MAY NOT MATCH **
Android Development (Basics)
App Development on Android. Contents  First Milestone  Second Milestone  Third Milestone  Last Milestone 
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,
Intro to Android Programming George Nychis Srinivasan Seshan.
Android and Eclipse Thaddeus Diamond CPSC 112. A Quick Introduction Eclipse is an IDE (Integrated Development Environment Open Source Much more full-featured.
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.
Introduction to Android Programming (CS5248 Fall 2015) Aditya Kulkarni August 26, 2015 *Based on slides from Paresh Mayami.
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.
Android development basics Introduction,Structure,Development Boncho Valkov.Net Developer.
Prerequisites Android Studio – io.html io.html Java.
Ali Shahrokni Application Components Activities Services Content providers Broadcast receivers.
Presentation Seminar on “IMAGE SLIDER –AN ANDROID APPLICATION”
Basic Android Tutorial USF’s Association for Computing Machinery.
DUE Hello World on the Android Platform.
Android for Java Developers Denver Java Users Group Jan 11, Mike
© 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.
Android Boot Camp for Developers Using Java, 3E
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Introduction to Android (Part.
Treasure Hunt - project development overall status - November 2011.
Creating an Example Android App in Android Studio Activity lifecycle & UI Resources.
Introduction to Android
 Installation of Android Development Environment  Creating the App with OpenGL ES API  Running the App on Emulator Android App Development.
Scheduled Silence Application Midterm Presentation David Koritsanszky and Frederick Evans.
ANDROID APPLICATION DEVELOPMENT. ANDROID DEVELOPMENT DEVELOPER.ANDROID.COM/INDEX.HTML THE OFFICIAL SITE FOR ANDROID DEVELOPERS. PROVIDES THE ANDROID SDK.
Appium with Android Configuration.  Download Appium server:  Choose the latest version of appium.
TODAY Android Studio Installation Getting started Creating your 1 st App Beginning to understanding Intents.
Installation of Visual Studio Android emulator and Android Studio
TCS Internal Maps. 2 TCS Internal Objective Objective :  MAPS o Integration of Maps.
APP DESIGN AND DEVELOPMENT WITH THE IONIC FRAMEWORK Chuck Leone
Android apps development - Eclipse, Android SDK, and ADT plugin Introduction of.
Introduction to Android Programming
COM594: Mobile Technology Practical – Week 1 Android and Android Studio.
The Basics of Android App Development Sankarshan Mridha Satadal Sengupta.
Android 01: Fundamentals
Android Studio, Android System Basics and Git
Android.
Development-Introduction
The GoogleMap API By Cody Littley.
CA16R405 - Mobile Application Development (Theory)
Anatomy of an Android Application
Android Studio Hello World
CS5103 Software Engineering
Android Developer Fundamentals V2
Android Programming Tutorial
How to Submit Google Docs to the Homework Drop Box
Emerging Platform#3 Android & Programming an App
A very brief introduction
Mobile Programming Dr. Mohsin Ali Memon.
Cosc 4730 An Introduction.
CA16R405 - Mobile Application Development (Theory)
CA16R405 - Mobile Application Development (Theory)
Presentation transcript:

Programming Your Android App Gourav Khadge

The Android Language Android is a Google App development language Android is a variant of Java Android is to Java as Arduino is to C – Adds several built in functions that are called during the lifecycle of the app – Adds the Activity/Intent structure

Your Android IDE Android SDK – Eclipse based IDE Android Studio – Google released their own IDE – Just use Android SDK Download it here: ?utm_source=weibolife ?utm_source=weibolife

The Android Manifest XML File Tells your app: – What permissions your app has Bluetooth Camera – What activities are in your app – App version data – App requirements – Specifies the App icon

This app is version 1.0. It uses the camera, and has permission to write to external storage

The Layout XML Files Each activity usually has an associated layout Layout specifies the GUI – What buttons are on the page – Where they are placed Linear layout and relative layout are different ways of specifying positions The layout is where you specify an id for each UI element so it can be referred to in the class file claring-layout.html claring-layout.html

Tip: Use the text editor to edit your layout file In this layout file, a horizontal linear layout is embedded in the structure It has 2 buttons The first one (left one) will be labeled “On” and have the id “btnOn” The second one (right one) will be labeled “Off” and have the id “btnOff”

The Activity Class Files Every page is an “activity” The activity is defined by a.java class file that: – Specifies a layout setContentView(R.layout.activity_main); – Implements UI elements from layout file Button btnOn = (Button) findViewById(R.id.btnOn); Attaches layout elements to objects Adds listeners (onClick, onTouch…) Has several built in functions that are called during the lifetime of the activity

Life Cycle of an Android Activity

Intents An intent object specifies what intent you have when you create a new activity. – This includes opening a new page as well as taking a picture detailIntent = new Intent(this,ImportImage.class); startActivity(detailIntent); – Creates intent to open ImportImage page – Closes the current activity and starts the ImportImage activity Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); startActivityForResult(takePictureIntent, REQUEST_IMAGE_CAPTURE); – Creates intent to take an image using your native camera app – Launches the native camera app and waits for it to return with a result

Testing Your App Android virtual devices – aging-avds.html aging-avds.html An Android device – The preferred option if possible since virtual devices are slow and terrible – Requires USB to mini-USB cable and an Android device

Helpful links This shows you how to connect and transfer information through bluetooth. It doesn't show the layout file though. app-2-button.html You can see an example of a 2 button app with the layout file app-2-button.html Anything from this website. It also contains good documentation for all Android functions and libraries