{"id":4888,"date":"2019-06-21T13:52:26","date_gmt":"2019-06-21T08:22:26","guid":{"rendered":"https:\/\/blog.pheonixsolutions.com\/?p=4888"},"modified":"2019-06-21T13:52:33","modified_gmt":"2019-06-21T08:22:33","slug":"fundamental-things-to-know-in-android-activity-and-fragment","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/fundamental-things-to-know-in-android-activity-and-fragment\/","title":{"rendered":"Fundamental things to know in android activity and fragment"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Fundamental things to know in android activity and fragment<\/h2>\n\n\n\n<h4 class=\"wp-block-heading\">Date : 12\/06\/2019<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">Activity<\/h3>\n\n\n\n<p> The <a href=\"https:\/\/developer.android.com\/reference\/android\/app\/Activity.html\"><strong><code>Activity<\/code><\/strong><\/a>class is basically a crucial component of an Android app, and the way activities are launched and put together is a fundamental part of the platform&#8217;s application model.<\/p>\n\n\n\n<p> Hence an activity provides the window in which the app draws its UI.<\/p>\n\n\n\n<p> Actually an XML file and Activity for implementation works together to display a single screen in a app.<\/p>\n\n\n\n<p> Most apps contain multiple screens, which means they comprise multiple activities.<\/p>\n\n\n\n<p> <strong>Each activity can then start another activity in order to perform different actions. To do this we have to INTENT.<\/strong><\/p>\n\n\n\n<p> For your app to be able to use activities, basically you must declare the activities, and certain of their attributes, in the manifest.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;manifest&gt;\n   &lt;application&gt;\n     &lt;activity android:name=\".ExampleActivity\"\/&gt;\n\n   &lt;\/application&gt;\n&lt;\/manifest&gt;<\/pre>\n\n\n\n<p>You\nmust implement onCreate()\nin\nevery activity,\nwhich fires when the system creates your activity. \n<\/p>\n\n\n\n<p>Your implementation should initialise the essential components of your activity: For example, your app should create views and bind data to lists here. Most importantly, this is where you must call <strong>setContentView<code><a href=\"https:\/\/developer.android.com\/reference\/android\/app\/Activity.html#setContentView(android.view.View)\">()<\/a> <\/code><\/strong>to define the layout for the activity&#8217;s user interface.<\/p>\n\n\n\n<p> Every <code>Activity<\/code> has a life-cycle which is independent of other activities.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"503\" height=\"614\" src=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2019\/06\/Screenshot-from-2019-06-18-07-09-05.png\" alt=\"\" class=\"wp-image-4889\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot-from-2019-06-18-07-09-05.png 503w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot-from-2019-06-18-07-09-05-246x300.png 246w\" sizes=\"auto, (max-width: 503px) 100vw, 503px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Methods in activity<\/h4>\n\n\n\n<p>\nONCREATE()<\/p>\n\n\n\n<p> This method receives the parameter <strong><code>savedInstanceState<\/code><\/strong>, which is a <strong><code><a href=\"https:\/\/developer.android.com\/reference\/android\/os\/Bundle.html\">Bundle<\/a> <\/code><\/strong>object containing the activity&#8217;s previously saved state. Because if the activity has never existed before, the value of the <strong><code><a href=\"https:\/\/developer.android.com\/reference\/android\/os\/Bundle.html\">Bundle<\/a> <\/code><\/strong>object is null.<\/p>\n\n\n\n<p> When <strong><code><a href=\"https:\/\/developer.android.com\/reference\/android\/app\/Activity.html#onCreate(android.os.Bundle)\">onCreate()<\/a> <\/code><\/strong>finishes, quickly the next callback is always <a href=\"https:\/\/developer.android.com\/reference\/android\/app\/Activity.html#onStart()\"><strong><code>onStart()<\/code><\/strong><\/a>.<\/p>\n\n\n\n<p> ONSTART()<\/p>\n\n\n\n<p>\nThe\n<strong><code><a href=\"https:\/\/developer.android.com\/reference\/android\/app\/Activity.html#onStart()\">onStart()<\/a>\n<\/code><\/strong>call\nmakes the activity visible to the user, as the app prepares for the\nactivity to enter the foreground and become interactive.<\/p>\n\n\n\n<p>\nONRESUME()<\/p>\n\n\n\n<p> This is where therefore user can see the UI clearly.<\/p>\n\n\n\n<p>\nONPAUSE()<\/p>\n\n\n\n<p> From this, either the can goto resume state or navigate to onDestroy() to be destroyed.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"> FRAGMENT <\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>\n\n\tYou\n\tcan think of a fragment as a modular section of an activity, which\n\thas its own lifecycle, receives its own input events, and which you\n\tcan add or remove while the activity is running.\n<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li>\n\n\tsort\n\tof like a &#8220;sub activity&#8221; that you can reuse in different\n\tactivities.\n<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"307\" height=\"768\" src=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2019\/06\/Screenshot-from-2019-06-18-07-25-26.png\" alt=\"\" class=\"wp-image-4890\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot-from-2019-06-18-07-25-26.png 307w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot-from-2019-06-18-07-25-26-120x300.png 120w\" sizes=\"auto, (max-width: 307px) 100vw, 307px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li> To create a fragment, extend the <code><strong><a href=\"https:\/\/developer.android.com\/reference\/androidx\/fragment\/app\/Fragment.html\">Fragment<\/a> <\/strong><\/code>class, then override key lifecycle methods to insert your app logic, similar to the way you would with an <code><strong><a href=\"https:\/\/developer.android.com\/reference\/android\/app\/Activity.html\">Activity<\/a> <\/strong><\/code>class. <\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"> FRAGMENT TRANSACTIONS:<\/h4>\n\n\n\n<p> To move to next fragment, Actually we have to perform few things. For users this is to open new page in the app.<\/p>\n\n\n\n<p> Fundamentally we can use either ACTIVITY or FRAGMENT within a ACTIVITY to display new screen.<\/p>\n\n\n\n<p> Hence in fragment, we do this<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Fragment newFragment = new ExampleFragment();\nFragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n\/\/ Replace whatever is in the fragment_container view with this fragment,\n\/\/ and add the transaction to the back stack\ntransaction.replace(R.id.fragment_container, newFragment);\ntransaction.addToBackStack(null);\ntransaction.commit();<\/pre>\n\n\n\n<p>Thank you for using pheonixsolutions.<\/p>\n\n\n\n<p>If you find it useful, share with your friends to keep it alive.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fundamental things to know in android activity and fragment Date : 12\/06\/2019 Activity The Activityclass is basically a crucial component of an Android app, and the way activities are launched and put together is a fundamental part of the platform&#8217;s application model. Hence an activity provides the window in which&hellip; <a href=\"https:\/\/pheonixsolutions.com\/blog\/fundamental-things-to-know-in-android-activity-and-fragment\/\" class=\"more-link read-more\" rel=\"bookmark\">Continue Reading <span class=\"screen-reader-text\">Fundamental things to know in android activity and fragment<\/span><i class=\"fa fa-arrow-right\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[570],"tags":[569,577,681],"class_list":{"0":"post-4888","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-android-development","7":"tag-android","8":"tag-android-development","9":"tag-fundamental","10":"h-entry","12":"h-as-article"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Pheonix Solutions - We Empower Your Business Growth<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/pheonixsolutions.com\/blog\/fundamental-things-to-know-in-android-activity-and-fragment\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Pheonix Solutions - We Empower Your Business Growth\" \/>\n<meta property=\"og:description\" content=\"Fundamental things to know in android activity and fragment Date : 12\/06\/2019 Activity The Activityclass is basically a crucial component of an Android app, and the way activities are launched and put together is a fundamental part of the platform&#8217;s application model. Hence an activity provides the window in which&hellip; Continue Reading Fundamental things to know in android activity and fragment\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pheonixsolutions.com\/blog\/fundamental-things-to-know-in-android-activity-and-fragment\/\" \/>\n<meta property=\"og:site_name\" content=\"PHEONIXSOLUTIONS\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-06-21T08:22:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-06-21T08:22:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2019\/06\/Screenshot-from-2019-06-18-07-09-05.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@pheonixsolution\" \/>\n<meta name=\"twitter:site\" content=\"@pheonixsolution\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/fundamental-things-to-know-in-android-activity-and-fragment\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/fundamental-things-to-know-in-android-activity-and-fragment\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/0ffa33d73c869faec2d50e79c24e3503\"},\"headline\":\"Fundamental things to know in android activity and fragment\",\"datePublished\":\"2019-06-21T08:22:26+00:00\",\"dateModified\":\"2019-06-21T08:22:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/fundamental-things-to-know-in-android-activity-and-fragment\\\/\"},\"wordCount\":431,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/fundamental-things-to-know-in-android-activity-and-fragment\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/blog.pheonixsolutions.com\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/Screenshot-from-2019-06-18-07-09-05.png\",\"keywords\":[\"Android\",\"Android development\",\"Fundamental\"],\"articleSection\":[\"Android development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/fundamental-things-to-know-in-android-activity-and-fragment\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/fundamental-things-to-know-in-android-activity-and-fragment\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/fundamental-things-to-know-in-android-activity-and-fragment\\\/\",\"name\":\"Pheonix Solutions - We Empower Your Business Growth\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/fundamental-things-to-know-in-android-activity-and-fragment\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/fundamental-things-to-know-in-android-activity-and-fragment\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/blog.pheonixsolutions.com\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/Screenshot-from-2019-06-18-07-09-05.png\",\"datePublished\":\"2019-06-21T08:22:26+00:00\",\"dateModified\":\"2019-06-21T08:22:33+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/fundamental-things-to-know-in-android-activity-and-fragment\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/fundamental-things-to-know-in-android-activity-and-fragment\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/fundamental-things-to-know-in-android-activity-and-fragment\\\/#primaryimage\",\"url\":\"https:\\\/\\\/blog.pheonixsolutions.com\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/Screenshot-from-2019-06-18-07-09-05.png\",\"contentUrl\":\"https:\\\/\\\/blog.pheonixsolutions.com\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/Screenshot-from-2019-06-18-07-09-05.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/fundamental-things-to-know-in-android-activity-and-fragment\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Fundamental things to know in android activity and fragment\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\",\"name\":\"Pheonix Solutions\",\"description\":\"We Empower Your Business Growth\",\"publisher\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\",\"name\":\"PheonixSolutions\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/logo.png\",\"width\":454,\"height\":300,\"caption\":\"PheonixSolutions\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/PheonixSolutions-209942982759387\\\/\",\"https:\\\/\\\/x.com\\\/pheonixsolution\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/0ffa33d73c869faec2d50e79c24e3503\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"http:\\\/\\\/blog.pheonixsolutions.com\"],\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Pheonix Solutions - We Empower Your Business Growth","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:\/\/pheonixsolutions.com\/blog\/fundamental-things-to-know-in-android-activity-and-fragment\/","og_locale":"en_US","og_type":"article","og_title":"Pheonix Solutions - We Empower Your Business Growth","og_description":"Fundamental things to know in android activity and fragment Date : 12\/06\/2019 Activity The Activityclass is basically a crucial component of an Android app, and the way activities are launched and put together is a fundamental part of the platform&#8217;s application model. Hence an activity provides the window in which&hellip; Continue Reading Fundamental things to know in android activity and fragment","og_url":"https:\/\/pheonixsolutions.com\/blog\/fundamental-things-to-know-in-android-activity-and-fragment\/","og_site_name":"PHEONIXSOLUTIONS","article_publisher":"https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/","article_published_time":"2019-06-21T08:22:26+00:00","article_modified_time":"2019-06-21T08:22:33+00:00","og_image":[{"url":"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2019\/06\/Screenshot-from-2019-06-18-07-09-05.png","type":"","width":"","height":""}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@pheonixsolution","twitter_site":"@pheonixsolution","twitter_misc":{"Written by":"admin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pheonixsolutions.com\/blog\/fundamental-things-to-know-in-android-activity-and-fragment\/#article","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/blog\/fundamental-things-to-know-in-android-activity-and-fragment\/"},"author":{"name":"admin","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/person\/0ffa33d73c869faec2d50e79c24e3503"},"headline":"Fundamental things to know in android activity and fragment","datePublished":"2019-06-21T08:22:26+00:00","dateModified":"2019-06-21T08:22:33+00:00","mainEntityOfPage":{"@id":"https:\/\/pheonixsolutions.com\/blog\/fundamental-things-to-know-in-android-activity-and-fragment\/"},"wordCount":431,"commentCount":0,"publisher":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#organization"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/fundamental-things-to-know-in-android-activity-and-fragment\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2019\/06\/Screenshot-from-2019-06-18-07-09-05.png","keywords":["Android","Android development","Fundamental"],"articleSection":["Android development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/pheonixsolutions.com\/blog\/fundamental-things-to-know-in-android-activity-and-fragment\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/pheonixsolutions.com\/blog\/fundamental-things-to-know-in-android-activity-and-fragment\/","url":"https:\/\/pheonixsolutions.com\/blog\/fundamental-things-to-know-in-android-activity-and-fragment\/","name":"Pheonix Solutions - We Empower Your Business Growth","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/pheonixsolutions.com\/blog\/fundamental-things-to-know-in-android-activity-and-fragment\/#primaryimage"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/fundamental-things-to-know-in-android-activity-and-fragment\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2019\/06\/Screenshot-from-2019-06-18-07-09-05.png","datePublished":"2019-06-21T08:22:26+00:00","dateModified":"2019-06-21T08:22:33+00:00","breadcrumb":{"@id":"https:\/\/pheonixsolutions.com\/blog\/fundamental-things-to-know-in-android-activity-and-fragment\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pheonixsolutions.com\/blog\/fundamental-things-to-know-in-android-activity-and-fragment\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pheonixsolutions.com\/blog\/fundamental-things-to-know-in-android-activity-and-fragment\/#primaryimage","url":"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2019\/06\/Screenshot-from-2019-06-18-07-09-05.png","contentUrl":"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2019\/06\/Screenshot-from-2019-06-18-07-09-05.png"},{"@type":"BreadcrumbList","@id":"https:\/\/pheonixsolutions.com\/blog\/fundamental-things-to-know-in-android-activity-and-fragment\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pheonixsolutions.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Fundamental things to know in android activity and fragment"}]},{"@type":"WebSite","@id":"https:\/\/pheonixsolutions.com\/blog\/#website","url":"https:\/\/pheonixsolutions.com\/blog\/","name":"Pheonix Solutions","description":"We Empower Your Business Growth","publisher":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pheonixsolutions.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/pheonixsolutions.com\/blog\/#organization","name":"PheonixSolutions","url":"https:\/\/pheonixsolutions.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/12\/logo.png","contentUrl":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/12\/logo.png","width":454,"height":300,"caption":"PheonixSolutions"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/","https:\/\/x.com\/pheonixsolution"]},{"@type":"Person","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/person\/0ffa33d73c869faec2d50e79c24e3503","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g","caption":"admin"},"sameAs":["http:\/\/blog.pheonixsolutions.com"],"url":"https:\/\/pheonixsolutions.com\/blog\/author\/admin\/"}]}},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p7F4uM-1gQ","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/4888","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=4888"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/4888\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=4888"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=4888"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=4888"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}