Resources & Android Manifest Калин Кадиев Astea Solutions AD.

Slides:



Advertisements
Similar presentations
App Customization. Introduction  Not all Android apps look the same  i.e. the default bland black and white look  Most have custom looks like  Background.
Advertisements

Joemarie Comeros Amparo Android Development Orientation for Starters.
Application Fundamentals. See: developer.android.com/guide/developing/building/index.html.
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.
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
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.
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.
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.
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.
Chapter 2: Simplify! The Android User Interface
1 Programming in Android. 2 Outline 3 What you get from Android An Android Application is a Loosely-Coupled Software System The Project Structure The.
Copyright© Jeffrey Jongko, Ateneo de Manila University Android.
This work is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this license, visit
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
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.
Resources. Application Resources Resources are strings, images, and other pieces of application information that are stored and maintained (externalized)
Configuring Android Development Environment Nilesh Singh.
Android Boot Camp for Developers Using Java, Comprehensive: A Guide to Creating Your First Android Apps Chapter 2: Simplify! The Android User Interface.
Creating an Example Android App in Android Studio Activity lifecycle & UI Resources.
Webview and Web services. Web Apps You can make your web content available to users in two ways in a traditional web browser in an Android application,
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.
Android App Basics Dr. David Janzen Except as otherwise noted, the content of this presentation is licensed under the Creative Commons Attribution 2.5.
ANDROID – A FIRST PROGRAM L. Grewe Using AndroidStudio –basic Android  Lets do a “Hello World Project”  Start up AndroidStudio (assume you have installed.
ANDROID AND MODEL / VIEW / CONTROLLER. Slide 2 Design Patters Common solutions to programming problems are called design patterns Design patterns are.
HW#9 Clues CSCI 571 Fall, HW#9 Prototype
1 Android Introduction Platform Overview. 2 What is Android?  Android is a software stack for mobile devices that includes an operating system, middleware.
Copyright© Jeffrey Jongko, Ateneo de Manila University Deconstructing HelloWorld.
ANDROID APPLICATION DEVELOPMENT. ANDROID DEVELOPMENT DEVELOPER.ANDROID.COM/INDEX.HTML THE OFFICIAL SITE FOR ANDROID DEVELOPERS. PROVIDES THE ANDROID SDK.
Introduction to Android OS Димитър Н. Димитров Astea Solutions AD.
Mobile Software Development for Android - I397 IT COLLEGE, ANDRES KÄVER, WEB:
INTRODUCTION TO ANDROID. Slide 2 Introduction I take a top-down approach to describing an application’s anatomy.
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
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
Mobile Applications (Android Programming)
Lab7 – Appendix.
Reactive Android Development
Mobile Applications (Android Programming)
Android Mobile Application Development
Lecture 3 Zablon Ochomo Android Layouts Lecture 3 Zablon Ochomo
Android 01: Fundamentals
Android Application Development 1 6 May 2018
Android N Amanquah.
Adapting to Display Orientation
Android Runtime – Dalvik VM
MAD.
Politeknik Elektronika Negeri Surabaya
Mobile Device Development
Anatomy of an Android Application
Android SDK & App Development
CS5103 Software Engineering
CMPE419 Mobile Application Development
Emerging Platform#3 Android & Programming an App
Android Overview.
CA16R405 - Mobile Application Development (Theory)
Presentation transcript:

Resources & Android Manifest Калин Кадиев Astea Solutions AD

Retrospection: Hello World setContentView(R.layout.main); The only code we see is setContentView(R.layout.main); Where is the “Hello” string? Obviously, go to R.java AUTO-GENERATED FILE. DO NOT MODIFY

Idea: Anything that isn't code should be separated from the code Goal: Easier support of different device configurations Schema: – Put your resources in /res – Android generates R.java compile-time – Access resources via the R.java Application resources

Resource types String: /res/values Drawable: /res/drawable – Simplest case: png, jpg or gif – General concept for a graphic that can be drawn to the screen

Resource types Layout: /res/layout – Defines the architecture for the UI in an Activity or a component of a UI – <RelativeLayout xmlns:android="..." android:layout_width="fill_parent" android:layout_width="fill_parent" android:layout_height="fill_parent" > android:layout_height="fill_parent" > <Button <Button android:layout_width="wrap_content" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_height="wrap_content" android:text="Hello, I am a Button" /> android:text="Hello, I am a Button" /></RelativeLayout>

Resource types Style Menu Animation Others...

Directory qualifiers Screen density: ldpi, mdpi, hdpi, … Orientation: port, land Locale: en, en-US, etc. Platform version: v Screen Size: small, normal, large, xlarge

Resources resolving Android represents unified access to your resources and automatically selects which resource to use, depending on the current device configuration.

Android Manifest Presents essential information about the application to the Android system. Names the application package. The package name serves as a unique identifier for the application. Specifies the versionCode. Used by the market to detect updates.

Android Manifest Describes (not necessarily) application components - activities, services, broadcast receivers, content providers Declares application permissions <uses-permission android:name= "android.permission.ACCESS_FINE_LOCATION"> Declares the minimum API level Lists the libraries linked against

Market filtering Screen size: Device features: Software libraries: Permissions: – If the permission is hardware-oriented and not stated in, the feature is considered required SDK:

Q&A + Feedback Questions? Feedback section: – Did you hear well? – Was there anything you didn’t understand? – What would you like changed in our next lecture?

Further reading Resources Providing resources Supporting multiple screens Android Manifest Market Filtering