Activity Lifecycle Fall 2012 CS2302: Programming Principles.

Slides:



Advertisements
Similar presentations
Programming with Android: Activities
Advertisements

CSE2102 Introduction to Software Engineering Lab 2 Sept/4/2013.
Fragments: Introduction Fragments were introduced in Android 3.0 to support flexible and dynamic UI designs represent portions of an application’s user.
Programming with Android: Activities
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.
Android activities 1 CS300. What makes an app?  Activities: presentation layer  Services: invisible workers  Content Providers: databases  Intents:
The Activity Class 1.  One application component type  Provides a visual interface for a single screen  Typically supports one thing a user can do,
Android Fragments.
Android Life Cycle CS328 Dick Steflik. Life Cycle The steps that an application goes through from starting to finishing Slightly different than normal.
More on User Interface Android Applications. Layouts Linear Layout Relative Layout Table Layout Grid View Tab Layout List View.
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.
ANDROID UI – FRAGMENTS. Fragment  An activity is a container for views  When you have a larger screen device than a phone –like a tablet it can look.
Android Mobile computing for the rest of us.* *Prepare to be sued by Apple.
Android Info mostly based on Pro Android 3.  User Applications  Java Libraries – most of Java standard edition ◦ Activities/Services ◦ UI/Graphics/View.
Activities and Intents. Activities Activity is a window that contains the user interface of your application,typically an application has one or more.
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.
Android Programming-Activity Lecture 4. Activity Inside java folder Public class MainActivity extends ActionBarActivity(Ctrl + Click will give you the.
Understand applications and their components activity service broadcast receiver content provider intent AndroidManifest.xml.
Android – Fragments L. Grewe.
ANDROID L. Grewe Components  Java Standard Development Kit (JDK) (download) (latest version)  AndroidStudio.
Noname. Conceptual Parts States of Activities Active Pause Stop Inactive.
Activity Android Club Agenda Hello Android application Application components Activity StartActivity.
1 CMSC 628: Introduction to Mobile Computing Nilanjan Banerjee Introduction to Mobile Computing University of Maryland Baltimore County
Mobile Development. Name: Saurabh Software Developer.
Jozef Goetz © Copyright by Pearson Education, Inc. All Rights Reserved 1 Credits: Copyright  Pearson Education, Inc. All rights.
Activities and Intents Chapter 3 1. Objectives Explore an activity’s lifecycle Learn about saving and restoring an activity Understand intents and how.
Chapter 3 Tip Calculator App
Introduction to android
Android Application -Architecture.
Open Handset Alliance.
SQLite in Android Landon Cox March 2, 2017.
Activity and Fragment.
Programming with Android:
Basic Activities and Intents
Activities, Fragments, and Events
Fragment ?.
Fragments: Introduction
Mobile Application Development BSCS-7 Lecture # 6
Walk n’ Play Group #8 - Team Murali Krishna Goli Viswanath Patimalla
Activities and Intents
Android Activities An application can have one or more activities, where Each activity Represents a screen that an app present to its user Extends the.
Anatomy of an Android App and the App Lifecycle
Widgets & Fragments Kalin Kadiev Astea Solutions AD.
Android Mobile Application Development
Software Engineering in Mobile Computing
The Android Activity Lifecycle
ANDROID UI – FRAGMENTS UNIT II.
Android training in Chandigarh. What is ADB ADB stands for Android Debug Bridge. It is a command line tool that is used to communicate with the emulator.
CIS 470 Mobile App Development
Anatomy of an Android App and the App Lifecycle
Android Topics Android Activity Lifecycle and Experiment Toast
Activities and Intents
HNDIT2417 Mobile Application Development
Android Programming Tutorial
Programming Mobile Applications with Android
CIS 470 Mobile App Development
Activity Lifecycle.
Activities and Intents
Windows Service Applications
Objects First with Java
SE4S701 Mobile Application Development
Activities and Fragments
Android Development Tools
Korea Software HRD Center
Activities, Fragments, and Intents
CIS 694/EEC 693 Android Sensor Programming
Presentation transcript:

Activity Lifecycle Fall 2012 CS2302: Programming Principles

Activity States Active (running) Paused Stopped An active activity is visible on the screen and has the focus. This is the activity the user is interacting with. Paused A paused activity is visible on the screen but doesn’t have the focus. A paused activity can be killed when its memory is needed by the OS. Stopped A stopped activity is not visible on the screen and is likely to be killed by the system when its memory is needed. Fall 2012 CS2302: Programming Principles

Lifecycle Events onCreate() onStart() onResume() onPause() onRestart() onStop() onDestroy() Fall 2012 CS2302: Programming Principles

Start the first Activity onCreate onStart onResume Fall 2012 CS2302: Programming Principles

Start the second Activity from the first Activity onPause SecondActivity onCreate onStart onResume onStop Fall 2012 CS2302: Programming Principles

Come back to the first Activity SecondActivity onPause FirstActivity onRestart onStart onResume onStop Fall 2012 CS2302: Programming Principles

Summary Fall 2012 CS2302: Programming Principles