{"id":150,"date":"2026-06-03T06:26:53","date_gmt":"2026-06-03T06:26:53","guid":{"rendered":"https:\/\/gigz.pk\/javaapp\/?post_type=lesson&#038;p=150"},"modified":"2026-06-06T11:40:08","modified_gmt":"2026-06-06T11:40:08","slug":"intents","status":"publish","type":"lesson","link":"https:\/\/gigz.pk\/javaapp\/?lesson=intents","title":{"rendered":"Intents"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Intents are one of the most important concepts in Android app development. They are used for communication between different components of an Android application and can also be used to interact with other applications installed on a device. Intents help developers navigate between screens, pass data, launch system features, and create a seamless user experience.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Almost every Android application uses Intents for activity navigation and component communication.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What are Intents in Android?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">An Intent is a messaging object used to request an action from another app component.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Intents allow Android components to communicate with each other.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">They can be used to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open another activity<\/li>\n\n\n\n<li>Pass data between screens<\/li>\n\n\n\n<li>Launch system applications<\/li>\n\n\n\n<li>Open web pages<\/li>\n\n\n\n<li>Make phone calls<\/li>\n\n\n\n<li>Send emails<\/li>\n\n\n\n<li>Share content<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Intents play a central role in Android application architecture.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why are Intents Important?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Intents are important because they:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Enable communication between activities<\/li>\n\n\n\n<li>Allow data transfer between screens<\/li>\n\n\n\n<li>Connect applications with system services<\/li>\n\n\n\n<li>Simplify navigation<\/li>\n\n\n\n<li>Improve application functionality<\/li>\n\n\n\n<li>Support modular app design<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Without Intents, Android applications would not be able to move efficiently between different screens and services.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Types of Intents<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Android provides two main types of Intents:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Explicit Intent<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Used when the target component is known.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Intent intent =\n        new Intent(\n                MainActivity.this,\n                SecondActivity.class);\n\nstartActivity(intent);\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This Intent directly opens a specific activity.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Implicit Intent<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Used when the target component is not specified.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The Android system decides which application can handle the request.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Intent intent =\n        new Intent(\n                Intent.ACTION_VIEW);\n\nstartActivity(intent);\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This Intent requests a general action rather than a specific activity.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Explicit Intents<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Explicit Intents are commonly used within the same application.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">They allow developers to navigate from one activity to another.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Example<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Suppose an application contains:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>MainActivity\nSecondActivity\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To open SecondActivity:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Intent intent =\n        new Intent(\n                MainActivity.this,\n                SecondActivity.class);\n\nstartActivity(intent);\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The application moves from MainActivity to SecondActivity.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Understanding startActivity()<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>startActivity()<\/code> method launches the activity specified by the Intent.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>startActivity(intent);\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Android reads the Intent and opens the target activity.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Creating Multiple Screens<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">MainActivity<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>public class MainActivity\n        extends AppCompatActivity {\n\n}\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">SecondActivity<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>public class SecondActivity\n        extends AppCompatActivity {\n\n}\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Developers can navigate between these activities using Intents.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Passing Data with Intents<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Intents can transfer information between activities.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Sending Data<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>Intent intent =\n        new Intent(\n                MainActivity.this,\n                SecondActivity.class);\n\nintent.putExtra(\n        \"username\",\n        \"Ali\");\n\nstartActivity(intent);\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The data is attached to the Intent.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Receiving Data<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Inside SecondActivity:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>String username =\n        getIntent()\n        .getStringExtra(\n                \"username\");\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The receiving activity can access the transmitted data.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Passing Multiple Values<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Intent intent =\n        new Intent(\n                MainActivity.this,\n                ProfileActivity.class);\n\nintent.putExtra(\n        \"name\",\n        \"Ahmed\");\n\nintent.putExtra(\n        \"age\",\n        22);\n\nstartActivity(intent);\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Receiving:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>String name =\n        getIntent()\n        .getStringExtra(\"name\");\n\nint age =\n        getIntent()\n        .getIntExtra(\n                \"age\",\n                0);\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Multiple values can be transferred through a single Intent.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Implicit Intents<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Implicit Intents allow applications to request actions from the Android system.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The system selects an appropriate application to handle the request.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Opening a Web Page<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Intent intent =\n        new Intent(\n                Intent.ACTION_VIEW,\n                Uri.parse(\n                        \"https:\/\/www.google.com\"));\n\nstartActivity(intent);\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The browser opens the specified website.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Opening the Dialer<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Intent intent =\n        new Intent(\n                Intent.ACTION_DIAL);\n\nintent.setData(\n        Uri.parse(\n                \"tel:123456789\"));\n\nstartActivity(intent);\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The phone dialer opens with the number entered.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Sending an Email<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Intent intent =\n        new Intent(\n                Intent.ACTION_SEND);\n\nintent.setType(\n        \"message\/rfc822\");\n\nintent.putExtra(\n        Intent.EXTRA_EMAIL,\n        new String&#91;]{\n                \"example@email.com\"\n        });\n\nstartActivity(intent);\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">An email application opens automatically.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Sharing Text<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Intent intent =\n        new Intent(\n                Intent.ACTION_SEND);\n\nintent.setType(\"text\/plain\");\n\nintent.putExtra(\n        Intent.EXTRA_TEXT,\n        \"Hello Android\");\n\nstartActivity(intent);\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Users can share content through messaging and social media apps.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Opening Maps<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Intent intent =\n        new Intent(\n                Intent.ACTION_VIEW,\n                Uri.parse(\n                        \"geo:0,0?q=Faisalabad\"));\n\nstartActivity(intent);\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The map application opens the specified location.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Intent Filters<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Intent Filters define which Intents an activity can respond to.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;intent-filter&gt;\n\n    &lt;action\n        android:name=\n        \"android.intent.action.MAIN\"\/&gt;\n\n    &lt;category\n        android:name=\n        \"android.intent.category.LAUNCHER\"\/&gt;\n\n&lt;\/intent-filter&gt;\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This filter identifies the application&#8217;s launch activity.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Intent Flags<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Flags control how activities are launched.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Intent intent =\n        new Intent(\n                MainActivity.this,\n                HomeActivity.class);\n\nintent.addFlags(\n        Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\nstartActivity(intent);\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Flags help manage the activity stack.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Returning Data from an Activity<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">An activity can send information back to the calling activity.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Intent resultIntent =\n        new Intent();\n\nresultIntent.putExtra(\n        \"result\",\n        \"Success\");\n\nsetResult(\n        RESULT_OK,\n        resultIntent);\n\nfinish();\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The calling activity can receive the returned data.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Complete Example<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">MainActivity<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>Button btnNext =\n        findViewById(R.id.btnNext);\n\nbtnNext.setOnClickListener(v -&gt; {\n\n    Intent intent =\n            new Intent(\n                    MainActivity.this,\n                    SecondActivity.class);\n\n    intent.putExtra(\n            \"name\",\n            \"Ali\");\n\n    startActivity(intent);\n\n});\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">SecondActivity<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>String name =\n        getIntent()\n        .getStringExtra(\n                \"name\");\n\nTextView txtName =\n        findViewById(R.id.txtName);\n\ntxtName.setText(name);\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This example passes data from one screen to another.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Real-World Applications of Intents<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Intents are used in:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Login and registration systems<\/li>\n\n\n\n<li>Navigation between screens<\/li>\n\n\n\n<li>Social media sharing<\/li>\n\n\n\n<li>Email applications<\/li>\n\n\n\n<li>Maps integration<\/li>\n\n\n\n<li>Phone call features<\/li>\n\n\n\n<li>Messaging applications<\/li>\n\n\n\n<li>E-commerce apps<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Nearly every Android application uses Intents extensively.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common Beginner Mistakes<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Forgetting to Register Activities<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Activities must be declared in AndroidManifest.xml.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;activity\n    android:name=\".SecondActivity\"\/&gt;\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Using Wrong Keys<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Incorrect:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>intent.putExtra(\n        \"user\",\n        \"Ali\");\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Receiving:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>getStringExtra(\n        \"username\");\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Keys must match exactly.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Null Data Handling<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Always check whether received data is null.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Missing Permissions<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Some implicit Intents require permissions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Examples:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Phone calls<\/li>\n\n\n\n<li>Camera access<\/li>\n\n\n\n<li>Location services<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Best Practices<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When using Intents:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use descriptive keys<\/li>\n\n\n\n<li>Validate received data<\/li>\n\n\n\n<li>Register all activities properly<\/li>\n\n\n\n<li>Handle exceptions gracefully<\/li>\n\n\n\n<li>Use explicit Intents within apps<\/li>\n\n\n\n<li>Test navigation thoroughly<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">These practices improve reliability and maintainability.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Importance of Intents<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Intents are important because they:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Enable communication between app components<\/li>\n\n\n\n<li>Support screen navigation<\/li>\n\n\n\n<li>Facilitate data sharing<\/li>\n\n\n\n<li>Connect apps with system services<\/li>\n\n\n\n<li>Improve user experience<\/li>\n\n\n\n<li>Form the foundation of Android component interaction<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Every Android developer must understand how Intents work.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Intents are a powerful Android mechanism used for communication between activities, services, and applications. They enable navigation, data transfer, content sharing, and interaction with device features such as browsers, maps, email clients, and phone dialers. By mastering Explicit Intents, Implicit Intents, data passing, and Intent Filters, developers can create dynamic, connected, and professional Android applications that provide seamless user experiences.<\/p>\n\n\n<div class=\"yoast-breadcrumbs\"><span><span><a href=\"https:\/\/gigz.pk\/javaapp\">Home<\/a><\/span> \u00bb <span class=\"breadcrumb_last\" aria-current=\"page\">Java for Android Apps > App Logic with Java > Intents<\/span><\/span><\/div>\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><\/div>\n","protected":false},"menu_order":48,"template":"","class_list":["post-150","lesson","type-lesson","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Intents - Learn Java used for Apps with GiGz.PK<\/title>\n<meta name=\"description\" content=\"Learn Android intents \u2014 explicit and implicit intents, passing data between activities, and real-world examples explained simply.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/gigz.pk\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Intents - Learn Java used for Apps with GiGz.PK\" \/>\n<meta property=\"og:description\" content=\"Learn Android intents \u2014 explicit and implicit intents, passing data between activities, and real-world examples explained simply.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gigz.pk\/\" \/>\n<meta property=\"og:site_name\" content=\"Learn Java used for Apps with GiGz.PK\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-06T11:40:08+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\\\/\\\/gigz.pk\\\/javaapp\\\/?lesson=intents\",\"url\":\"https:\\\/\\\/gigz.pk\\\/\",\"name\":\"Intents - Learn Java used for Apps with GiGz.PK\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/javaapp\\\/#website\"},\"datePublished\":\"2026-06-03T06:26:53+00:00\",\"dateModified\":\"2026-06-06T11:40:08+00:00\",\"description\":\"Learn Android intents \u2014 explicit and implicit intents, passing data between activities, and real-world examples explained simply.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/gigz.pk\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/gigz.pk\\\/javaapp\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java for Android Apps > App Logic with Java > Intents\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/javaapp\\\/#website\",\"url\":\"https:\\\/\\\/gigz.pk\\\/javaapp\\\/\",\"name\":\"Learn Java used for Apps with GiGz.PK\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/gigz.pk\\\/javaapp\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Intents - Learn Java used for Apps with GiGz.PK","description":"Learn Android intents \u2014 explicit and implicit intents, passing data between activities, and real-world examples explained simply.","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:\/\/gigz.pk\/","og_locale":"en_US","og_type":"article","og_title":"Intents - Learn Java used for Apps with GiGz.PK","og_description":"Learn Android intents \u2014 explicit and implicit intents, passing data between activities, and real-world examples explained simply.","og_url":"https:\/\/gigz.pk\/","og_site_name":"Learn Java used for Apps with GiGz.PK","article_modified_time":"2026-06-06T11:40:08+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["WebPage","FAQPage"],"@id":"https:\/\/gigz.pk\/javaapp\/?lesson=intents","url":"https:\/\/gigz.pk\/","name":"Intents - Learn Java used for Apps with GiGz.PK","isPartOf":{"@id":"https:\/\/gigz.pk\/javaapp\/#website"},"datePublished":"2026-06-03T06:26:53+00:00","dateModified":"2026-06-06T11:40:08+00:00","description":"Learn Android intents \u2014 explicit and implicit intents, passing data between activities, and real-world examples explained simply.","breadcrumb":{"@id":"https:\/\/gigz.pk\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gigz.pk\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/gigz.pk\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/gigz.pk\/javaapp"},{"@type":"ListItem","position":2,"name":"Java for Android Apps > App Logic with Java > Intents"}]},{"@type":"WebSite","@id":"https:\/\/gigz.pk\/javaapp\/#website","url":"https:\/\/gigz.pk\/javaapp\/","name":"Learn Java used for Apps with GiGz.PK","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/gigz.pk\/javaapp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/gigz.pk\/javaapp\/index.php?rest_route=\/wp\/v2\/lesson\/150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gigz.pk\/javaapp\/index.php?rest_route=\/wp\/v2\/lesson"}],"about":[{"href":"https:\/\/gigz.pk\/javaapp\/index.php?rest_route=\/wp\/v2\/types\/lesson"}],"wp:attachment":[{"href":"https:\/\/gigz.pk\/javaapp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}