Ando-it-yourself droid Praveen Kumar Pendyala. Outline Brief intro to the Droid developement Setting up the Life saviors - Development tools Hello Droid.

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.
Programming with Android: SDK install and initial setup Luca Bedogni Marco Di Felice Dipartimento di Scienze dellInformazione Università di Bologna.
Bruce Scharlau, University of Aberdeen, 2010 Android UI, and Networking Mobile Computing Based on android-sdk_2.2 Unless otherwise stated, images are from.
Android OS : Core Concepts Dr. Jeyakesavan Veerasamy Sr. Lecturer University of Texas at Dallas
Chapter 1: Voilà! Meet the Android
Programming Mobile Applications with Android
Joemarie Comeros Amparo Android Development Orientation for Starters.
Programming with Android: SDK install and initial setup Luca Bedogni Marco Di Felice Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna.
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.
Android Tutorial Android Written in Java Utilizes Dalvik VM – Just in time (JIT) compilation since Android 2.2.
Android Programming Beomjoo Seo Sep., 12 CS5248 Fall 2012.
ANDROID PROGRAMMING MODULE 1 – GETTING STARTED
Setting up the Development Environment Copyright © SUPINFO. All rights reserved Preparation.
How to make it work? Doncho Minkov Telerik Academy academy.telerik.com Technical Trainer
SET UP COMPUTER ** PLEASE BE AWARE SCREENSHOTS MAY NOT MATCH **
Android Tutorial Larry Walters OOSE Fall References This tutorial is a brief overview of some major concepts…Android is much richer and more complex.
INTERNATIONAL SUMMER ACADEMIC COURSE UNIVESITY OF NIS ISAC – Android programming.
Android Programming Day best Android Apps Lzo&feature=fvwrel.
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.
Chapter 1: Voilà! Meet the Android. Smartphones –Can browse the Web –Allow you to play games –Use business applications –Check –Play music –Record.
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,
Introduction to Android Programming Content Basic environmental structure Building a simple app Debugging.
Cosc 5/4730 Information, Resources, and basic GUI concepts.
Chapter 3 Navigating a Project Goals & Objectives 1.Get familiar with the navigation of the project. How is everything structured? What settings can you.
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.
Chapter 1: Voilà! Meet the Android
PARSING FACEBOOK DATA FOR ANDROID 1. Step by Step  Import Android SDK  Get the hash key  Create a new app  Create a new project in Eclipse 
Intro to Android Development Ben Lafreniere. Getting up and running Don’t use the VM! ials/hello-world.html.
Copyright© Jeffrey Jongko, Ateneo de Manila University Android.
Introduction to Android. Android as a system, is a java based operating system that runs on the Linux kernel. The system is very lightweight and full.
Basic Android Tutorial USF’s Association for Computing Machinery.
DUE Hello World on the Android Platform.
CS378 - Mobile Computing Intents.
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.
INTRODUCTION TO ANDROID. Slide 2 Application Components An Android application is made of up one or more of the following components Activities We will.
How to publish your app 1 CS440. Step 1: Remove any debug logging  Good practice: comment out any debug logging  Why? CS440 2.
Android Boot Camp for Developers Using Java, 3E
Android 3: Exploring Apps and the Development Environment Kirk Scott 1.
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Introduction to Android (Part.
Creating an Example Android App in Android Studio Activity lifecycle & UI Resources.
First Venture into the Android World Chapter 1 Part 2.
 Installation of Android Development Environment  Creating the App with OpenGL ES API  Running the App on Emulator Android App Development.
HW#9 Clues CSCI 571 Fall, HW#9 Prototype
ANDROID APPLICATION DEVELOPMENT. ANDROID DEVELOPMENT DEVELOPER.ANDROID.COM/INDEX.HTML THE OFFICIAL SITE FOR ANDROID DEVELOPERS. PROVIDES THE ANDROID SDK.
CHAPTER 1 Introduction. Chapter objectives: Understand what Android is Learn the differences between Java and Android Java Examine the Android project.
Building the CarryDrop simulation in Eclipse Creating a new project with existing code from John Murphy’s RePast tutorial.
TCS Internal Maps. 2 TCS Internal Objective Objective :  MAPS o Integration of Maps.
Intoduction to Andriod studio Environment With a hello world program.
INTRODUCTION TO ANDROID. Slide 2 Introduction I take a top-down approach to describing an application’s anatomy.
Android apps development - Eclipse, Android SDK, and ADT plugin Introduction of.
Why Learn Android? Largest installation base of any operating system Over 20,000 Android devices exist Businesses will likely move more to device-based.
Introduction to Android Programming
Android 01: Fundamentals
Obtaining the Required Tools
Android Runtime – Dalvik VM
Android.
Development-Introduction
Anatomy of an Android Application
Application Development A Tutorial Driven Course
Android Developer Fundamentals V2
Mobile Programming Dr. Mohsin Ali Memon.
Presentation transcript:

Ando-it-yourself droid Praveen Kumar Pendyala

Outline Brief intro to the Droid developement Setting up the Life saviors - Development tools Hello Droid application Application structure Intelligence and beauty – Java code and UI (XMLs) Our best pals – APIs, In-built libraries Group chat app UI and Java code OnclickListeners Intents Multithreading Network actions Changing views from Java code Permissions Exporting and signing your application Web app code

Intro Why Android ?

Intro Android versions and Stats VersionCodenameAPIDistribution 1.6 D onut 40.2% 2.1 E clair 72.4% 2.2 F royo 89.0% G ingerbread 90.2% % 3.1 H oneycomb 120.4% % I ce Cream Sandwich % 4.1 J elly Bean 169.0% % 5.0 ? K ey lime pie ?-

Development tools - Intro Eclipse Requires Java Runtime Environment (JRE) Like an advanced notepad/Gedit you used for C/C++ A general development tool for Java programming (not limited to android) Android SDK Contains the necessary tools to create, compile and package Android application ADT (Android Development Tools) A set of components (plug-ins) which extend the Eclipse IDE with Android development capabilities

Development tools - setup JRE Run and install the JRE software that came with your bundle What about Eclipse, ADT, Android SDK ? Lucky you are… Google now bundled everything and gives you as a package which can be used directly after JRE installation ! (You may not appreciate this, as you havent been through earlier setup process)

Hello Droid application In eclipse, 1. File New Android Application Project (or) File New other Android Android Application Project

Hello Droid application Enter these values Application Name : HelloDroid Project Name: HelloDroid Package Name: com.myfirstapp.hellodroid Website of your application in reverse Press Next twice………………..

Hello Droid application Play with the Names, Images and Shapes. I suggest, you select your fav pic, for feel Press Next twice again….. (Yeah you have to select BlankActivity)

Hello Droid application Leave the values as they are for this session Finish…… Simple…..Isnt it ??

Application structure All Java code All images used The UI design elements All the words you see in the app and colors that appear Your application details -Name, What should come 1 st, Version, Services used -Permissions that are needed, Activities (IMPORTANT !!)

Manifest.xml This is what gives an Idea of what your application is, what it uses and ….What not ? Almost every info

Strings and colors

UI design

Java code, Libraries, APIs API – Application Program Interface

Groupchat application - UI res layout activity_main.xml

Groupchat application - Strings res values strings.xml

Groupchat application – OnclickListeners & Intents src MainActivity.java Now lets setup an action for our button. Going to a new screen on click

Groupchat application – Creating new XMLs and classes Lets now create an Activity and corresponding Layout XML for messaging 1.Goto res layout Right click on layout New Android XML file Name it messaging.xml and finish 2.Goto src com. Right click on package New Class Name it Messaging and finish

Groupchat application – More on UI res layout messaging.xml Add these two as childs to the main LinearLayout

Groupchat application – Starting threads src Messaging.java Lets receive the Nick and do some settings

Groupchat application – Multithreading src Messaging.java Network activity always on a background thread No UI changes in this thread !! (IMP)

Groupchat application – Network data reception src Messaging.java

Groupchat application – Network data sending

Groupchat application – Changing views from Java code src Messaging.java

Groupchat application – Extras (Special characters support) src Messaging.java

Groupchat application – Activities, Permissions src Messaging.java Is that it ? Will it work ? Of course not…. Add Internet permission Declare your class as an activity

Groupchat application – Ready to go…. src Messaging.java Just seconds away to see it live…. In package explorer Click on your project Click Run Android application Select your device (or) Start emulator Problem ?? Device not detected ?? Just explore to the bin folder in your application. Copy and transfer.apk file to your device

Export and signing your application By default when you press run apps are signed using debug key Debug key signed apps not allowed in the market To Export your application for publishing in Android market File Export Android (Export And…) Create a Keystroke Create an alias Save the apk Finish

Groupchat application – Web end putData.php

This is just the beginning... I look forward to see awesome apps from you all…Please do keep me posted if you make an app in future Hope you all enjoyed Thank you