Android Mobile Application Development

Slides:



Advertisements
Similar presentations
Google Android Introduction to Mobile Computing. Android is part of the build a better phone process Open Handset Alliance produces Android Comprises.
Advertisements

Application Fundamentals. See: developer.android.com/guide/developing/building/index.html.
ANDROID PROGRAMMING MODULE 1 – GETTING STARTED
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.
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.
Software Architecture of Android Yaodong Bi, Ph.D. Department of Computing Sciences University of Scranton.
Chapter 2: Simplify! The Android User Interface
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 
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.
Basic Android Tutorial USF’s Association for Computing Machinery.
This work is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this license, visit
CS378 - Mobile Computing Intents.
Android for Java Developers Denver Java Users Group Jan 11, Mike
Chapter 2 The Android User Interface. Objectives  In this chapter, you learn to:  Develop a user interface using the TextView, ImageView, and Button.
Asst Prof. Saeed Ahmadi Software Engineering CSF Kabul University 1.
INTRODUCTION TO ANDROID. Slide 2 Application Components An Android application is made of up one or more of the following components Activities We will.
Overview of Android Application Development
CS378 - Mobile Computing Intents. Allow us to use applications and components that are part of Android System – start activities – start services – deliver.
Android Boot Camp for Developers Using Java, 3E
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 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.
Introduction to Android
Cosc 4735 Primer: Marshmallow Changes and new APIs in android 6.0 (api 23)
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 Chapter 1 1. Objectives Understand what Android is Learn the differences between Java and Android Java Examine the Android project.
Chapter 2: Simplify! The Android User Interface
Mobile Applications (Android Programming)
Android Mobile Application Development
Android 3: Exploring Apps and the Development Environment
Android Mobile Application Development
Reactive Android Development
Permissions.
Mobile Applications (Android Programming)
Free for All! Assessing User Data Exposure to Advertising Libraries on Android Campbell Foskin.
Android 01: Fundamentals
Android Application Development 1 6 May 2018
Lecture 2 Zablon Ochomo Android Programming Lecture 2 Zablon Ochomo
Reactive Android Development
Instructor: Mazhar Hussain
Android Runtime – Dalvik VM
Android Studio, Android System Basics and Git
MAD.
Activities and Intents
Android Mobile Application Development
Development-Introduction
Mobile Application Development BSCS-7 Lecture # 3
CA16R405 - Mobile Application Development (Theory)
Mobile Device Development
Anatomy of an Android Application
Android SDK & App Development
CS5103 Software Engineering
CA16R405 - Mobile Application Development (Theory)
Emerging Platform#3 Android & Programming an App
Mobile Programming Dr. Mohsin Ali Memon.
Introduction to Android
Korea Software HRD Center
Android Overview.
Mobile Programmming Dr. Mohsin Ali Memon.
Presentation transcript:

Android Mobile Application Development Manifest file And Resource Lecture Five Assistant Lecturer Mustafa Ghanem Saeed Computer Science Department College Of Science Cihan University - Sulaimaniyah

Manifest Every application must have an AndroidManifest.xml file in its root directory. The manifest file provides essential information about your app to the Android system, which the system must have before it can run any of the app's code. For example, the listing contains the package name, the minimum required SDK and the target SDK, etc... AndroidManifest.xml: This is the Android definition file. It contains information about the Android application such as minimum Android version, permission to access Android device capabilities such as internet access permission, ability to use phone permission, etc. http://www.dummies.com/programming/java/the-androidmanifest-xml-file/

Manifest in APK

Manifest Structure The code snippet below shows the basic general structure of the manifest file:

List of Information contained in Androidmanifest.xml Activities and Intents Permission SDK attributes Application Version http://devlup.com/mobile/android/introduction-to-androidmanifest-file/4121/

Manifest Permission Android contains a permission system and predefined permissions for certain tasks. Every application can request required permissions. For example, an application may declare that it requires network access. It can also define new permissions. http://www.vogella.com/tutorials/AndroidPermissions/article.html

Runtime permissions The two most important protection levels : Normal permissions are permissions which are deemed harmless for the users privacy or the operation of other applications. For example, the permission to set the time zone. Normal permission are automatically granted to the application. Dangerous permissions affect the users private information, or could potentially affect his data or the operation of other application. For example, the ability to read the users contact data. Dangerous permissions must be granted by the user at runtime to the app. Android 6.0 Marshmallow (API 23) introduced a new runtime permission model. If your application targets Android 6.0, you must use the new permissions model. http://abhiandroid.com/programming/intent-filter

How to Ask for Permission? https://code.tutsplus.com/articles/understanding-permissions-in-android-m--cms-24443

Resources Resources are the additional files and static content that your code uses, such as bitmaps, layout definitions, user interface strings, and more.. These resources are always maintained separately in various sub-directories under res/ directory of the project. Android 6.0 Marshmallow (API 23) introduced a new runtime permission model. If your application targets Android 6.0, you must use the new permissions model. https://developer.android.com/guide/topics/resources/providing-resources.html

Some Resource Types Drawable Resources Layout Resource Menu Resource Define various graphics with bitmaps or XML. Saved in res/drawable/ and accessed from the R.drawable class. Layout Resource Define the layout for your application UI. Saved in res/layout/ and accessed from the R.layout class. Menu Resource Define the contents of your application menus. Saved in res/menu/ and accessed from the R.menu class. String Resources Define strings, string arrays, and plurals (and include string formatting and styling). Saved in res/values/ and accessed from the R.string, R.array, and R.plurals classes. Style Resource Define the look and format for UI elements. Saved in res/values/ and accessed from the R.style class. Android 6.0 Marshmallow (API 23) introduced a new runtime permission model. If your application targets Android 6.0, you must use the new permissions model. https://code.tutsplus.com/tutorials/android-from-scratch-how-to-use-resources-in-an-application--cms-26041

Android R.java file Android R.java is an auto-generated file by aapt (Android Asset Packaging Tool) that contains resource IDs for all the resources of res/ directory. If you create any component in the activity_main.xml file, id for the corresponding component is automatically created in this file. Note: If you delete R.jar file, android creates it automatically. Android 6.0 Marshmallow (API 23) introduced a new runtime permission model. If your application targets Android 6.0, you must use the new permissions model. https://developer.android.com/guide/topics/resources/available-resources.html

Android R.java file Example Android 6.0 Marshmallow (API 23) introduced a new runtime permission model. If your application targets Android 6.0, you must use the new permissions model. http://www.programering.com/a/MzM5YzNwATU.html

Important Questions? Define AndroidManifest.xml ? Ans : Slide 2 Draw Information contained in Androidmanifest.xml? Ans : Slide 5 What is Manifest Permission end explain protection levels in Runtime permissions ? Ans : Slide 6,7 Draw figure illustrate how to ask for Permission in android Application ? Ans : Slide 8 Define Resource in android and list only four Resource Types? Ans : Slide 9, 10 Explain Android R.java file? Ans : Slide 11

Questions? Discussion?