Configuring Android Development Environment Nilesh Singh.

Slides:



Advertisements
Similar presentations
David Angulo Rubio ANDROID OS Open Software Platform for Mobile Devices.
Advertisements

Chapter 1: Voilà! Meet the Android
Programming Mobile Applications with Android
Programming with Android: SDK install and initial setup Luca Bedogni Marco Di Felice Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna.
Application Fundamentals. See: developer.android.com/guide/developing/building/index.html.
Filip Debelić What is it? Android is a mobile operating system (OS) based on the Linux kernel and currently developed by Google Android,
User Interface Android Applications. Activities An activity presents a visual user interface. Each activity is given a default window to draw in. The.
Android: Hello World Frank Xu Gannon University. Steps Configuration ▫Android SDK ▫Android Development Tools (ADT)  Eclipse plug-in ▫Android SDK and.
Android and Project Structure. Android Android OS – Built on Linux Kernel – Phones – Netbooks – Readers – Other???
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.
Android Application Development with Java UPenn CS4HS 2011 Chris Murphy
ANDROID PROGRAMMING MODULE 1 – GETTING STARTED
How to make it work? Doncho Minkov Telerik Academy academy.telerik.com Technical Trainer
@2011 Mihail L. Sichitiu1 Android Introduction Hello World.
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.
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.
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 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.
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.
Chapter 2: Simplify! The Android User Interface
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.
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.
DUE Hello World on the Android Platform.
CE Applied Communications Technology Android lecture 2 - Structures Android File structure Resources Drawables Layout Values R Class Manifest Running.
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.
Chapter 2 The Android User Interface. Objectives  In this chapter, you learn to:  Develop a user interface using the TextView, ImageView, and Button.
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.
Android Boot Camp for Developers Using Java, Comprehensive: A Guide to Creating Your First Android Apps Chapter 2: Simplify! The Android User Interface.
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Introduction to Android (Part.
Android Development Environment Environment/tools Windows Eclipse IDE for Java Developers (v3.5 Galileo) Java Platform (JDK 6 Update 18) Android.
Creating an Example Android App in Android Studio Activity lifecycle & UI Resources.
First Venture into the Android World Chapter 1 Part 2.
ANDROID – A FIRST PROGRAM L. Grewe Using AndroidStudio –basic Android  Lets do a “Hello World Project”  Start up AndroidStudio (assume you have installed.
1 Android Introduction Platform Overview. 2 What is Android?  Android is a software stack for mobile devices that includes an operating system, middleware.
Presented by Christopher Wilkins Jeff Titus Stephan Krach Pablo Bajo.
ANDROID APPLICATION DEVELOPMENT. ANDROID DEVELOPMENT DEVELOPER.ANDROID.COM/INDEX.HTML THE OFFICIAL SITE FOR ANDROID DEVELOPERS. PROVIDES THE ANDROID SDK.
TODAY Android Studio Installation Getting started Creating your 1 st App Beginning to understanding Intents.
Resources & Android Manifest Калин Кадиев Astea Solutions AD.
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.
CHAPTER 1 part 1 Introduction. Chapter objectives: Understand Android Learn the differences between Java and Android Java Examine the Android project.
Introduction to Android Programming
Android 01: Fundamentals
Android Application Development 1 6 May 2018
Lecture 2 Zablon Ochomo Android Programming Lecture 2 Zablon Ochomo
Android Runtime – Dalvik VM
Android.
MAD.
Anatomy of an Android Application
Android SDK & App Development
CS5103 Software Engineering
Android Developer Fundamentals V2 Lesson 1
Mobile Programming Dr. Mohsin Ali Memon.
Presentation transcript:

Configuring Android Development Environment Nilesh Singh

2 JDK 6 (Java Development Kit ) and above JDK 6 (Java Development Kit ) and above Eclipse + ADT Eclipse + ADT SDK SDK developer.android.com/sdk/index.html or Note:Please refer README file from given DVD Requirements

3 Configuring Android Online

4 Configuring Android Offline

5 Creating Android Virtual Device (AVD)

6 Familiarization with Eclipse IDE Wednesday 5 December 2012

7 Important components of Eclipse for android 1) package Explorer 2) DDMS(Dalvik Debug Monitor Server ) 3) LogCat 4) Console

8 Sample Application

9 1) src folder: It contain.java file 2) bin folder: It contain.apk file 3) Assests folder: it contain text file, image file, video file etc. 4) res folder: It has drawable and layout directory which contain main.xml file 5) value folder: it contain string.xml file Understanding Android Project Structure

10 Wednesday 5 December 2012  AndroidManifest.xml file  R.Java and Resource  Assets  Widgets Understanding Android Project Structure...(2)

11 Wednesday 5 December 2012  Every application must have an AndroidManifest.xml file.  The manifest presents essential information about the application to the Android system.  The manifest does the following 1) It names the Java package for the application. The package name serves as a unique identifier for the application. 2) It describes the components of the application : The activities, services, broadcast receivers, and content providers. AndroidManifest.xml file

12 Wednesday 5 December ) I t determines which processes will host application components. 4) It also declares the permissions that others are required to have, in order to interact with the components of the application 5) It declares the minimum level of the Android API, that the application requires. AndroidManifest.xml file...(2)

13 Wednesday 5 December 2012  The file R.java is an auto-generated file, that is added to your application, by the Android plug-in.  This file contains pointers into the drawable, layout, and values directories.  You should never modify this file directly. You will be only referencing R.java in most of your applications. R.Java

14 Wednesday 5 December 2012 Auto-generated code in R.java

15 package testPackage.HelloWorldText; public final class R { public static final class attr {} public static final class drawable { public static final int icon=0x7f020000; } public static final class layout { public static final int main=0x7f030000; } public static final class string { public static final int app_name=0x7f040000; }

16 Resources Wednesday 5 December 2012  Almost all Android applications will have some sort of resources in them; at a minimum they often have the user interface layouts in the form of XML files.

17 Wednesday 5 December 2012  The three files that make up the default resources, are created in the Resources folder: ◦ Ic_launcher.png - The default icon for the application ◦ Main.xml - The default user interface layout file for the application. ◦ Strings.xml – A string table to help with localization of the application Resources

18 Assets Wednesday 5 December 2012  Assets provide a way to include arbitrary files like text, xml,fonts, music, and video, in your application.  If you try to include these files as 'resources', Android will process them into its resource system, and you will not be able to get the raw data.  If you want to access data untouched, using Assets is one way to do it.

19 Wednesday 5 December 2012 Android offers one more directory where you can keep files which also will be included is package. This directory called /assets. The difference between /res and /assets is that, Android does not generate IDs of assets content. You need to specify relative path and name, for files inside /assets. InputStream is = getAssets().open("text.txt"); Code to Access Assets :

20 Wednesday 5 December 2012 Widgets Android widgets can, bring lot of useful information directly to your home screen, without the need to start the application. Widgets should be viewed as mini applications that sit on your home screen. They display various bits of information from the main application.

21 Widget types: 1)Information widgets Information widgets typically display a few crucial information elements that are important to a user and track how that information changes over time.Good examples for information widgets are weather widgets, clock widgets Weather widgets

22 As the name implies, collection widgets specialize on displaying multitude elements of the same type, such as a collection of pictures from a gallery app, a collection of articles from a news app or a collection of s/messages from a communication app. 2) Collection widgets ListView widget Widget types...(2)

23 Summery 1) Installation 2) Creating AVD 3) Familiarization with Eclipse IDE 4) Resources 5) AndroidMenifest.xml 6) Widgets

24 References

25 Wednesday 5 December 2012