<br />
<b>Warning</b>:  Undefined array key "global_protection_id" in <b>/home/wikitechy/public_html/interview-questions/wp-content/plugins/content-protector/inc/class-ps-rest-handler.php</b> on line <b>51</b><br />
{"id":104,"date":"2021-07-11T04:58:44","date_gmt":"2021-07-11T04:58:44","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=104"},"modified":"2021-09-15T06:19:36","modified_gmt":"2021-09-15T06:19:36","slug":"android-activity-lifecycle","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/android\/android-activity-lifecycle\/","title":{"rendered":"Android Activity Lifecycle | android lifecycle"},"content":{"rendered":"<div class=\"ImageContent\">\n<div class=\"hddn\" style=\"text-align: justify;\"><img decoding=\"async\" class=\"img-responsive center-block\" src=\"https:\/\/cdn.wikitechy.com\/tutorials\/android\/android-activity-lifecycle.gif\" alt=\"Android activity lifecycle\" \/><\/div>\n<\/div>\n<div class=\"TextHeading\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<h2 id=\"what-is-android-activity\" class=\"color-red\">What is Android Activity<\/h2>\n<\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>An activity represents a single screen with a user interface just like window or frame of Java .Android activity is the subclass of\u00a0<a href=\"https:\/\/www.wikitechy.com\/tutorials\/android\/android-context-menu\" target=\"_blank\" rel=\"noopener\">Context<\/a>\u00a0Theme Wrapper class.\n<ul>\n<li>Activities are a fundamental building block of Android applications and they can exist in a number of different states.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<div class=\"ImageContent\">\n<div class=\"hddn\"><img decoding=\"async\" class=\"img-responsive center-block aligncenter\" src=\"https:\/\/cdn.wikitechy.com\/tutorials\/android\/life-cycle-of-activity-in-android.png\" alt=\" life cycle of activity in android\" \/><\/div>\n<\/div>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>The activity lifecycle begins with instantiation and ends with destruction, and includes many states in between.<\/li>\n<li>When an activity changes state, the appropriate lifecycle event method is called, notifying the activity of the impending state change and allowing it to execute code in order to adapt to that change.<\/li>\n<li>Android Activity Lifecycle is controlled by 7 methods of android.app.Activity class.<\/li>\n<li>An activity is the single screen in android. It is like window or frame of Java.<\/li>\n<li>By the help of activity, you can place all your UI components or widgets in a single screen.<\/li>\n<li>The 7 lifecycle method of Activity describes how activity will behave at different states.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"TextHeading\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<h2 id=\"android-activity-lifecycle-methods\" class=\"color-green\">Android Activity Lifecycle methods<\/h2>\n<\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>Let&#8217;s see the 7 lifecycle methods of android activity.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<table class=\"table-bordered table-striped table table-responsive\" style=\"height: 426px;\" width=\"508\">\n<tbody>\n<tr>\n<th class=\"text-center\">Method<\/th>\n<th class=\"text-center\">Description<\/th>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\">onCreate<\/td>\n<td class=\"text-leftalign\">called when activity is first created.<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\">onStart<\/td>\n<td class=\"text-leftalign\">called when activity is becoming visible to the user.<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\">onResume<\/td>\n<td class=\"text-leftalign\">called when activity will start interacting with the user.<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\">onPause<\/td>\n<td class=\"text-leftalign\">called when activity is not visible to the user.<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\">onStop<\/td>\n<td class=\"text-leftalign\">called when activity is no longer visible to the user.<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\">onRestart<\/td>\n<td class=\"text-leftalign\">called after your activity is stopped, prior to start.<\/td>\n<\/tr>\n<tr>\n<td class=\"text-leftalign\">onDestroy<\/td>\n<td class=\"text-leftalign\">called before the activity is destroyed.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<div class=\"ImageContent\" style=\"text-align: justify;\">\n<div class=\"hddn\"><img decoding=\"async\" class=\"img-responsive center-block aligncenter\" src=\"https:\/\/cdn.wikitechy.com\/tutorials\/android\/oncreate-in-android.png\" alt=\" oncreate in android\" \/><\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>It provides the details about the invocation of life cycle methods of activity. In this example, we are displaying the content on the logcat.\n<ul>\n<li>File: MainActivity.java<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"CodeContent\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<figure class=\"highlight\"><div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-javascript code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-javascript code-embed-code\">package com.example.activitylifecycle;  <br\/>import android.os.Bundle;  <br\/>import android.app.Activity;  <br\/>import android.util.Log;  <br\/>import android.view.Menu;  <br\/>public class MainActivity extends Activity {  <br\/>    @Override  <br\/>    protected void onCreate(Bundle savedInstanceState) {  <br\/>        super.onCreate(savedInstanceState);  <br\/>        setContentView(R.layout.activity_main);  <br\/>        Log.d(&quot;lifecycle&quot;,&quot;onCreate invoked&quot;);  <br\/>    }  <br\/>    @Override  <br\/>    protected void onStart() {  <br\/>        super.onStart();  <br\/>         Log.d(&quot;lifecycle&quot;,&quot;onStart invoked&quot;);  <br\/>    }  <br\/>    @Override  <br\/>    protected void onResume() {  <br\/>        super.onResume();  <br\/>         Log.d(&quot;lifecycle&quot;,&quot;onResume invoked&quot;);  <br\/>    }  <br\/>    @Override  <br\/>    protected void onPause() {  <br\/>        super.onPause();  <br\/>         Log.d(&quot;lifecycle&quot;,&quot;onPause invoked&quot;);  <br\/>    }  <br\/>    @Override  <br\/>    protected void onStop() {  <br\/>        super.onStop();  <br\/>         Log.d(&quot;lifecycle&quot;,&quot;onStop invoked&quot;);  <br\/>    }  <br\/>       @Override  <br\/>    protected void onRestart() {  <br\/>        super.onRestart();  <br\/>         Log.d(&quot;lifecycle&quot;,&quot;onRestart invoked&quot;);  <br\/>    }     <br\/>    @Override  <br\/>    protected void onDestroy() {  <br\/>        super.onDestroy();  <br\/>         Log.d(&quot;lifecycle&quot;,&quot;onDestroy invoked&quot;);  <br\/>    }  <br\/>} <\/code><\/pre> <\/div><\/figure>\n<\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>You will not see any output on the emulator or device. You need to open logcat.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"ImageContent\" style=\"text-align: justify;\">\n<div class=\"hddn\"><img decoding=\"async\" class=\"img-responsive center-block aligncenter\" src=\"https:\/\/cdn.wikitechy.com\/tutorials\/android\/android-adb-driver.png\" alt=\" android adb driver\" \/><\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>Now see on the logcat: on Create, on Start and on Resume methods are invoked.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"ImageContent\" style=\"text-align: justify;\">\n<div class=\"hddn\"><img decoding=\"async\" class=\"img-responsive center-block aligncenter\" src=\"https:\/\/cdn.wikitechy.com\/tutorials\/android\/android-add-widget.png\" alt=\" android add widget\" \/><\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>Now click on the HOME Button. You will see on Pause method is invoked.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"ImageContent\" style=\"text-align: justify;\">\n<div class=\"hddn\"><img decoding=\"async\" class=\"img-responsive center-block aligncenter\" src=\"https:\/\/cdn.wikitechy.com\/tutorials\/android\/android-intent-example.png\" alt=\" android intent example\" \/><\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>After a while, you will see on Stop method is invoked.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"ImageContent\" style=\"text-align: justify;\">\n<div class=\"hddn\"><img decoding=\"async\" class=\"img-responsive center-block aligncenter\" src=\"https:\/\/cdn.wikitechy.com\/tutorials\/android\/activity-android.png\" alt=\" activity android\" \/><\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>Now see on the emulator. It is on the home. Now click on the center button to launch the app again.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"ImageContent\" style=\"text-align: justify;\">\n<div class=\"hddn\"><img decoding=\"async\" class=\"img-responsive center-block aligncenter\" src=\"https:\/\/cdn.wikitechy.com\/tutorials\/android\/activity-in-android.png\" alt=\" activity in android\" \/><\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>Now click on the lifecycle activity icon.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"ImageContent\" style=\"text-align: justify;\">\n<div class=\"hddn\"><img decoding=\"async\" class=\"img-responsive center-block aligncenter\" src=\"https:\/\/cdn.wikitechy.com\/tutorials\/android\/android-broadcastreceiver.png\" alt=\" android broadcastreceiver\" \/><\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>Now see on the logcat: on Restart, on Start and on Resume methods are invoked.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"ImageContent\" style=\"text-align: justify;\">\n<div class=\"hddn\"><img decoding=\"async\" class=\"img-responsive center-block aligncenter\" src=\"https:\/\/cdn.wikitechy.com\/tutorials\/android\/androidmanifest-xml.png\" alt=\" androidmanifest xml\" \/><\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>If you see the emulator, application is started again.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"ImageContent\" style=\"text-align: justify;\">\n<div class=\"hddn\"><img decoding=\"async\" class=\"img-responsive center-block aligncenter\" src=\"https:\/\/cdn.wikitechy.com\/tutorials\/android\/alogcat.png\" alt=\" alogcat\" \/><\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>Now click on the back button. Now you will see onPause methods is invoked.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"ImageContent\" style=\"text-align: justify;\">\n<div class=\"hddn\"><img decoding=\"async\" class=\"img-responsive center-block aligncenter\" src=\"https:\/\/cdn.wikitechy.com\/tutorials\/android\/android-activity-life-cycle.png\" alt=\" android activity life cycle\" \/><\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>After a while, you will see onStop and onDestroy methods are invoked.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"ImageContent\">\n<div class=\"hddn\"><img decoding=\"async\" class=\"img-responsive center-block aligncenter\" src=\"https:\/\/cdn.wikitechy.com\/tutorials\/android\/life-cycle-of-android.png\" alt=\" life cycle of android\" \/><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Answer : An activity represents a single screen with a user interface&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"passster_activate_protection":false,"passster_protect_child_pages":"","passster_protection_type":"password","passster_password":"","passster_activate_overwrite_defaults":"","passster_headline":"","passster_instruction":"","passster_placeholder":"","passster_button":"","passster_id":"","passster_activate_misc_settings":"","passster_redirect_url":"","passster_hide":"no","passster_area_shortcode":"","gtb_hide_title":false,"gtb_wrap_title":false,"gtb_class_title":"","gtb_remove_headerfooter":false,"footnotes":""},"categories":[105],"tags":[195,119,129,122,162,121,161,219,201,120,130,109,168,107,111,126,113,127,114,118,146,140,145,110,132,144,167,117,133,143,151,156,155,137,128,160,166,148,135,165,153,115,142,150,159,152,134,136,157,141,221,211,203,199,214,198,209,205,147,149,220,222,164,106,218,154,169,196,212,213,163,138,223,123,215,207,108,124,125,204,217,202,139,208,206,116,210,200,197,112,158,131,216],"class_list":["post-104","post","type-post","status-publish","format-standard","hentry","category-android","tag-accenture-interview-questions-and-answers","tag-activities-examples","tag-activity-android","tag-activity-life-cycle-in-android","tag-activity-lifecycle","tag-activity-lifecycle-android","tag-activity-lifecycle-in-android","tag-agreeya-solutions-interview-questions-and-answers","tag-allstate-solutions-pvt-ltd-interview-questions-and-answers","tag-android-account-manager","tag-android-activity","tag-android-activity-example","tag-android-activity-lifecycle","tag-android-activity-lifecycle-diagra","tag-android-activity-lifecycle-onsaveinstancestate","tag-android-adb-driver","tag-android-adb-interface-driver","tag-android-add-widget","tag-android-advanced-tutorial","tag-android-alertdialog-example","tag-android-api","tag-android-app-development","tag-android-app-store","tag-android-application-lifecycle","tag-android-apps","tag-android-apps-download","tag-android-authority","tag-android-button-style","tag-android-developer","tag-android-development","tag-android-development-tutorial","tag-android-device","tag-android-download","tag-android-emulator","tag-android-intent-example","tag-android-lifecycle","tag-android-ndk","tag-android-programming","tag-android-sdk","tag-android-sdk-download","tag-android-service","tag-android-service-lifecycle","tag-android-software","tag-android-studio-tutorial","tag-android-system","tag-android-tutorial","tag-android-update-android","tag-android-versions","tag-android-video","tag-apps-for-android","tag-bharti-airtel-interview-questions-and-answers","tag-bosch-india-software-interview-questions-and-answers","tag-capgemini-interview-questions-and-answers","tag-casting-networks-india-pvt-limited-interview-questions-and-answers","tag-cgi-group-inc-interview-questions-and-answers","tag-chetu-interview-questions-and-answers","tag-collabera-technologies-interview-questions-and-answers","tag-dell-international-services-india-pvt-ltd-interview-questions-and-answers","tag-developer-android","tag-eclipse-android","tag-electronics-arts-inc-interview-questions-and-answers","tag-flipkart-interview-questions-and-answers","tag-fragment-lifecycle","tag-fragment-lifecycle-in-android","tag-g-cube-webwide-software-pvt-ltd-interview-questions-and-answers","tag-google-android","tag-google-io","tag-ibm-interview-questions-and-answers","tag-indecomm-global-services-interview-questions-and-answers","tag-infosys-technologies-interview-questions-and-answers","tag-intent-in-android","tag-kodi-app","tag-lava-international-ltd-interview-questions-and-answers","tag-life-cycle-of-activity-in-android","tag-maintec-technologies-pvt-ltd-interview-questions-and-answers","tag-mphasis-interview-questions-and-answers","tag-mservice-lifecycle-in-android","tag-oncreate-in-android","tag-onresume-android","tag-oracle-corporation-interview-questions-and-answers","tag-peoplestrong-interview-questions-and-answers","tag-photon-interactive-pvt-ltd-interview-questions-and-answers","tag-poweramp","tag-prokarma-softech-pvt-ltd-interview-questions-and-answers","tag-sap-labs-india-pvt-ltd-interview-questions-and-answers","tag-service-lifecycle-android","tag-symphony-teleca-interview-questions-and-answers","tag-tech-mahindra-interview-questions-and-answers","tag-unitedhealth-group-interview-questions-and-answers","tag-what-is-activity-in-android","tag-what-is-android","tag-what-is-manifest-xml-in-androidandroid-phones-best-android-phone","tag-wipro-interview-questions-and-answers"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Android Activity Lifecycle | android lifecycle - Android Interview Questions<\/title>\n<meta name=\"description\" content=\"Android Activity Lifecycle - Android Interview Questions - An activity represents a single screen with a user interface just like window or frame of Java .\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wikitechy.com\/interview-questions\/android\/android-activity-lifecycle\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Android Activity Lifecycle | android lifecycle - Android Interview Questions\" \/>\n<meta property=\"og:description\" content=\"Android Activity Lifecycle - Android Interview Questions - An activity represents a single screen with a user interface just like window or frame of Java .\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/android\/android-activity-lifecycle\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-11T04:58:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-15T06:19:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.wikitechy.com\/tutorials\/android\/android-activity-lifecycle.gif\" \/>\n<meta name=\"author\" content=\"Editor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Editor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/android\/android-activity-lifecycle\/\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/android\/android-activity-lifecycle\/\",\"name\":\"Android Activity Lifecycle | android lifecycle - Android Interview Questions\",\"isPartOf\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/android\/android-activity-lifecycle\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/android\/android-activity-lifecycle\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdn.wikitechy.com\/tutorials\/android\/android-activity-lifecycle.gif\",\"datePublished\":\"2021-07-11T04:58:44+00:00\",\"dateModified\":\"2021-09-15T06:19:36+00:00\",\"author\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757\"},\"description\":\"Android Activity Lifecycle - Android Interview Questions - An activity represents a single screen with a user interface just like window or frame of Java .\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wikitechy.com\/interview-questions\/android\/android-activity-lifecycle\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/android\/android-activity-lifecycle\/#primaryimage\",\"url\":\"https:\/\/cdn.wikitechy.com\/tutorials\/android\/android-activity-lifecycle.gif\",\"contentUrl\":\"https:\/\/cdn.wikitechy.com\/tutorials\/android\/android-activity-lifecycle.gif\"},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#website\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/\",\"name\":\"Wikitechy\",\"description\":\"Interview Questions\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757\",\"name\":\"Editor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"caption\":\"Editor\"},\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/author\/editor\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Android Activity Lifecycle | android lifecycle - Android Interview Questions","description":"Android Activity Lifecycle - Android Interview Questions - An activity represents a single screen with a user interface just like window or frame of Java .","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wikitechy.com\/interview-questions\/android\/android-activity-lifecycle\/","og_locale":"en_US","og_type":"article","og_title":"Android Activity Lifecycle | android lifecycle - Android Interview Questions","og_description":"Android Activity Lifecycle - Android Interview Questions - An activity represents a single screen with a user interface just like window or frame of Java .","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/android\/android-activity-lifecycle\/","og_site_name":"Wikitechy","article_published_time":"2021-07-11T04:58:44+00:00","article_modified_time":"2021-09-15T06:19:36+00:00","og_image":[{"url":"https:\/\/cdn.wikitechy.com\/tutorials\/android\/android-activity-lifecycle.gif"}],"author":"Editor","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Editor","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/android\/android-activity-lifecycle\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/android\/android-activity-lifecycle\/","name":"Android Activity Lifecycle | android lifecycle - Android Interview Questions","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/android\/android-activity-lifecycle\/#primaryimage"},"image":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/android\/android-activity-lifecycle\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.wikitechy.com\/tutorials\/android\/android-activity-lifecycle.gif","datePublished":"2021-07-11T04:58:44+00:00","dateModified":"2021-09-15T06:19:36+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"description":"Android Activity Lifecycle - Android Interview Questions - An activity represents a single screen with a user interface just like window or frame of Java .","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/android\/android-activity-lifecycle\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/android\/android-activity-lifecycle\/#primaryimage","url":"https:\/\/cdn.wikitechy.com\/tutorials\/android\/android-activity-lifecycle.gif","contentUrl":"https:\/\/cdn.wikitechy.com\/tutorials\/android\/android-activity-lifecycle.gif"},{"@type":"WebSite","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website","url":"https:\/\/www.wikitechy.com\/interview-questions\/","name":"Wikitechy","description":"Interview Questions","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757","name":"Editor","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","caption":"Editor"},"url":"https:\/\/www.wikitechy.com\/interview-questions\/author\/editor\/"}]}},"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/104","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/comments?post=104"}],"version-history":[{"count":3,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/104\/revisions"}],"predecessor-version":[{"id":3811,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/104\/revisions\/3811"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=104"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}