Android activities 1 CS300. What makes an app?  Activities: presentation layer  Services: invisible workers  Content Providers: databases  Intents:

Slides:



Advertisements
Similar presentations
Android Application Development A Tutorial Driven Course.
Advertisements

Programming with Android: Activities
Application Fundamentals Android Development. Announcements Posting in D2L Tutorials.
Android architecture overview
CSE2102 Introduction to Software Engineering Lab 2 Sept/4/2013.
Android Application Model (3)
Programming with Android: Activities
CSS216 MOBILE PROGRAMMING Android, Chapter 3 Book: “Professional Android™ 2 Application Development” by Reto Meier, 2010 by: Andrey Bogdanchikov (
Android 02: Activities David Meredith
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.
The Android Activity Lifecycle. Slide 2 Introduction Working with the Android logging system Rotation and multiple layouts Understanding the Android activity.
The Activity Class 1.  One application component type  Provides a visual interface for a single screen  Typically supports one thing a user can do,
Application Fundamentals. See: developer.android.com/guide/developing/building/index.html.
Android Life Cycle CS328 Dick Steflik. Life Cycle The steps that an application goes through from starting to finishing Slightly different than normal.
Mobile Application Development
More on User Interface Android Applications. Layouts Linear Layout Relative Layout Table Layout Grid View Tab Layout List View.
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 Middleware Bo Pang
Chien-Chung Shen Manifest and Activity Chien-Chung Shen
CS378 - Mobile Computing Anatomy of an Android App and the App Lifecycle.
Android: versions Note that: Honeycomb (Android v3.0) A tablet-only release Jelly Bean (Android v4.1) Released on July 09, 2012.
© 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.
Android Mobile computing for the rest of us.* *Prepare to be sued by Apple.
Debugging for Android 1 CS440. Debugging for Android  You have three options:  Android Debug Bridge (ADB)  Dalvik Debug Monitor Device (DDMS)  Device.
Android Info mostly based on Pro Android 3.  User Applications  Java Libraries – most of Java standard edition ◦ Activities/Services ◦ UI/Graphics/View.
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
Copyright© Jeffrey Jongko, Ateneo de Manila University Of Activities, Intents and Applications.
10/10/2015 E.R.Edwards 10/10/2015 Staffordshire University School of Computing Introduction to Android Overview of Android System Android Components Component.
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.
Understand applications and their components activity service broadcast receiver content provider intent AndroidManifest.xml.
COMP 365 Android Development.  Every android application has a manifest file called AndroidManifest.xml  Found in the Project folder  Contains critical.
ANDROID L. Grewe Components  Java Standard Development Kit (JDK) (download) (latest version)  AndroidStudio.
DKU-MUST Mobile ICT Education Center 10. Activity and Intent.
Mobile Development. Name: Saurabh Software Developer.
Activities Димитър Н. Димитров Astea Solutions AD.
Lecture 2: Android Concepts
1 Android Workshop Platform Overview. 2 What is Android?  Android is a software stack for mobile devices that includes an operating system, middleware.
Activities and Intents Chapter 3 1. Objectives Explore an activity’s lifecycle Learn about saving and restoring an activity Understand intents and how.
Services. What is a Service? A Service is not a separate process. A Service is not a thread. A Service itself is actually very simple, providing two main.
Android Application -Architecture.
Reactive Android Development
Mobile Applications (Android Programming)
Mobile Application Development BSCS-7 Lecture # 2
Activity and Fragment.
Lecture 2 Zablon Ochomo Android Programming Lecture 2 Zablon Ochomo
Reactive Android Development
Architecture of Android
ANDROID AN OPEN HANDSET ALLIANCE PROJECT
Android Runtime – Dalvik VM
Android Studio, Android System Basics and Git
Activities and Intents
Anatomy of an Android App and the App Lifecycle
Android Mobile Application Development
Software Engineering in Mobile Computing
The Android Activity Lifecycle
Activity Lifecycle Fall 2012 CS2302: Programming Principles.
Activities and Intents
HNDIT2417 Mobile Application Development
Activity Lifecycle.
Activities and Intents
Emerging Platform#3 Android & Programming an App
Mobile Programming Dr. Mohsin Ali Memon.
Activities and Fragments
Android Development Tools
Activities, Fragments, and Intents
Presentation transcript:

Android activities 1 CS300

What makes an app?  Activities: presentation layer  Services: invisible workers  Content Providers: databases  Intents: message-passing framework  Broadcast receivers: broadcast consumers  Widgets: components added to home screen  Notifications: signa users without interrupting their current activities CS300 2

3

Activity states  Foreground of the screen: active or running.  At top of stack  Lost focus but still visible: paused.  A paused activity is completely alive, but can be killed by the system in extreme low memory situations.  Completely obscured by another activity: stopped.  Retains all state and member information, however, it is no longer visible to the user  If paused or stopped, the system can drop the activity from memory by either asking it to finish, or simply killing its process. CS300 4

Configuration changes  It will cause your current activity to be destroyed going through the normal activity lifecycle process of onPause(), onStop(), and onDestroy() as appropriate.onPause()onStop()onDestroy()  If the activity had been in the foreground or visible to the user, once onDestroy() is called in that instance then a new instance of the activity will be created, with whatever savedInstanceState the previous instance had generated from onSaveInstanceState(Bundle).onDestroy()onSaveInstanceState(Bundle) CS300 5

AndroidManifest.xml  heart of the (structure of) android app  lists out all the modules of your android application CS300 6

What does the manifest do??  Identify any user permissions the application requires, such as Internet access or read-access to the user's contacts.  Declare the minimum API Level required by the application, based on which APIs the application uses.API Level  Declare hardware and software features used or required by the application, such as a camera, bluetooth services, or a multitouch screen.  API libraries the application needs to be linked against (other than the Android framework APIs), such as theGoogle Maps library.Google Maps library 7

What does the manifest do??  The primary task of the manifest is to inform the system about the application's components  You must declare all application components this way:  elements for activities  elements for services  elements for broadcast receivers  elements for content providers CS300 8

Resources  app/Activity.html app/Activity.html  undamentals.html undamentals.html  st/manifest-intro.html st/manifest-intro.html CS300 9