{"id":82621,"date":"2021-07-19T09:00:29","date_gmt":"2021-07-19T03:30:29","guid":{"rendered":"https:\/\/techvidvan.com\/tutorials\/?p=82621"},"modified":"2024-08-04T20:39:56","modified_gmt":"2024-08-04T15:09:56","slug":"send-sms-in-android","status":"publish","type":"post","link":"https:\/\/techvidvan.com\/tutorials\/send-sms-in-android\/","title":{"rendered":"How to Send SMS in Android?"},"content":{"rendered":"<p>Today, we will cover yet another exciting topic. You might be well aware of the feature of sending SMS in android. Through this article, you will understand how you can send SMS to other devices using an application. For this, you need to know a few things.<\/p>\n<h3>Two ways to Send SMS on Android<\/h3>\n<p>First, SMS means short message service. So, you understand that it\u2019s a service, and we term it as Messaging service. To send a message, you require the recipient\u2019s phone number.<\/p>\n<p>Now there are two ways to sending SMS in Android. They are as follows:<\/p>\n<p>1. Using SMS Manager API<br \/>\n2. Using Built-in Application to send SMS.<\/p>\n<p>Before going to any of the above methods, you need to add Send SMS permission in your manifest file. You can copy-paste the below in your manifest file.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;uses-permission android:name=\"android.permission.SEND_SMS\"\/&gt;<\/pre>\n<p>Now let\u2019s see each of the methods along with code snippets.<\/p>\n<h4>SMS Manager API<\/h4>\n<p>SMS Manager API is used to send text, data, and PDU messages. You can implement SMS Manager API by copying the below code.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">\/\/Creating SMS Manager object\r\nval smsManager: manager = SmsManager.getDefault()\r\n\r\n\/\/Calling sendTextMessage\r\nmanager.sendTextMessage(recepient_number, null, the_message, null, null)\r\n<\/pre>\n<h4>Built-in Application Method<\/h4>\n<p>So, above, you saw how you could send messages using SMS Manager API. Now, you will know how you can use your built-in SMS application to send messages. You can find the code below for this method.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">val msg_uri = Uri.parse(\"smsto:recepient_phone_number\")\r\nval msgIntent = Intent(Intent.ACTION_SENDTO, msg_uri)\r\nmsgIntent.putExtra(\"message\", \"content of your message.\")\r\nstartActivity(msgIntent)\r\n<\/pre>\n<h3>SMS Manager Class<\/h3>\n<p>SMS Manager Class, as you know, is used to send messages and data. Above you saw a way how you can use the SMS manager API to send a text message. Now we will see the other methods that are present in the SMS Manager Class.<\/p>\n<p><strong>1. ArrayList&lt;String&gt; divideMessage()<\/strong><br \/>\nThe divideMessage() method is used to split a long message into multiple sub-messages, each within the allowable character limit for a single SMS. This is particularly useful when you need to send lengthy text messages without truncation.<\/p>\n<p><strong>2. void sendDataMessage()<\/strong><br \/>\nThe sendDataMessage() method allows you to send messages that include binary data, such as multimedia content or application-specific data. This method is essential for sending complex messages beyond plain text.<\/p>\n<p><strong>3. static SmsManager getDefault()<\/strong><br \/>\nThe getDefault() method creates and returns an instance of the SmsManager class, which is essential for sending SMS messages. This method provides a default SmsManager that is configured for the device&#8217;s network.<\/p>\n<p><strong>4. void sendTextMessage()<\/strong><br \/>\nThe sendTextMessage() method sends an SMS message that contains only text. It requires parameters such as the recipient&#8217;s phone number, the message content, and optional parameters for delivery and sent intents.<\/p>\n<h3>Implementation of Location-Based Services in Android.<\/h3>\n<p>So, after understanding the above concepts. We are ready to implement the concepts through a messaging application. The application will contain a button and two edit texts to send a message.<\/p>\n<p>Follow the below steps to achieve the goal.<\/p>\n<p><strong>1:<\/strong> Launch your Android Studio.<\/p>\n<p><strong>2:<\/strong> Select Create a New Project.<\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/06\/Build_App_1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-82820\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/06\/Build_App_1.png\" alt=\"Android Project\" width=\"1264\" height=\"856\" \/><\/a><\/p>\n<p><strong>3:<\/strong> Select Empty Activity and proceed.<\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/06\/Build_App_2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-82821\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/06\/Build_App_2.png\" alt=\"Android Activity\" width=\"1500\" height=\"952\" \/><\/a><\/p>\n<p><strong>4:<\/strong> Enter your application name. In my case, it\u2019s \u201cTechVidvanSendSMS\u201d Next, select Kotlin from the dropdown. For the API level, select API 22 for now.<\/p>\n<p><strong>5:<\/strong> Now, you need first to add the send SMS permission in your Manifest file.<\/p>\n<p><strong>Code:AndroidManifest.xml<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\r\n&lt;manifest xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\"\r\n    package=\"com.techvidvan.techvidvansendsms\"&gt;\r\n    \r\n    &lt;!--    Adding Permission to send SMS    --&gt;\r\n    &lt;uses-permission android:name=\"android.permission.SEND_SMS\"\/&gt;\r\n    &lt;application\r\n        android:allowBackup=\"true\"\r\n        android:icon=\"@mipmap\/ic_launcher\"\r\n        android:label=\"@string\/app_name\"\r\n        android:roundIcon=\"@mipmap\/ic_launcher_round\"\r\n        android:supportsRtl=\"true\"\r\n        android:theme=\"@style\/Theme.TechVidvanSendSMS\"&gt;\r\n        &lt;activity android:name=\".MainActivity\"&gt;\r\n            &lt;intent-filter&gt;\r\n                &lt;action android:name=\"android.intent.action.MAIN\" \/&gt;\r\n\r\n                &lt;category android:name=\"android.intent.category.LAUNCHER\" \/&gt;\r\n            &lt;\/intent-filter&gt;\r\n        &lt;\/activity&gt;\r\n    &lt;\/application&gt;\r\n\r\n&lt;\/manifest&gt;\r\n<\/pre>\n<p><strong>6:<\/strong> Now go to res &#8212;&gt; layout &#8212;-&gt; and open activity_main.xml. Now here, you need to add two edit texts and a button.<\/p>\n<p><strong>Code: activity_main.xml<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\r\n&lt;LinearLayout xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\"\r\n    xmlns:tools=\"http:\/\/schemas.android.com\/tools\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"match_parent\"\r\n    tools:context=\".MainActivity\"\r\n    android:layout_margin=\"20dp\"\r\n    android:orientation=\"vertical\"&gt;\r\n\r\n    &lt;TextView\r\n        android:id=\"@+id\/title\"\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:text=\"Tech Vidvan\"\r\n        android:textColor=\"#FF9800\"\r\n        android:textSize=\"30sp\"\r\n        android:textStyle=\"bold\"\r\n        android:gravity=\"center\"\r\n        android:padding=\"10dp\"\r\n        \/&gt;\r\n    &lt;EditText\r\n        android:id=\"@+id\/recipient_phone_number\"\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:padding=\"20dp\"\r\n        android:layout_marginTop=\"50dp\"\r\n        android:hint=\"Enter Recipient's Phone Number \"\r\n        android:textColor=\"@android:color\/black\" \/&gt;\r\n    &lt;EditText\r\n        android:id=\"@+id\/your_message\"\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:padding=\"20dp\"\r\n        android:layout_marginTop=\"10dp\"\r\n        android:hint=\"Please enter your message\"\r\n        android:textColor=\"@android:color\/black\" \/&gt;\r\n    &lt;Button\r\n        android:id=\"@+id\/send_your_sms\"\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:layout_gravity=\"center\"\r\n        android:layout_marginTop=\"15dp\"\r\n        android:onClick=\"sendSMS\"\r\n        android:text=\"Send Your Message\" \/&gt;\r\n\r\n&lt;\/LinearLayout&gt;\r\n<\/pre>\n<p><strong>7:<\/strong> Now, just open your MainActivity file and paste the below code.<\/p>\n<p><strong>Code: MainActivity.kt<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">package com.techvidvan.techvidvansendsms\r\n\r\nimport android.Manifest\r\nimport android.content.pm.PackageManager\r\nimport androidx.appcompat.app.AppCompatActivity\r\nimport android.os.Bundle\r\nimport android.telephony.SmsManager\r\nimport android.text.TextUtils\r\nimport android.view.View\r\nimport android.widget.Button\r\nimport android.widget.EditText\r\nimport android.widget.Toast\r\nimport androidx.core.app.ActivityCompat\r\nimport androidx.core.content.ContextCompat\r\n\r\nclass MainActivity : AppCompatActivity()\r\n{\r\n    \/\/declaring the variables\r\n    lateinit var button: Button\r\n    lateinit var recipient_number: EditText\r\n    lateinit var your_message: EditText\r\n    private val permissionRequest = 901\r\n\r\n    override fun onCreate(savedInstanceState: Bundle?)\r\n    {\r\n        super.onCreate(savedInstanceState)\r\n        setContentView(R.layout.activity_main)\r\n\r\n        \/\/binding edit text views with variable\r\n        recipient_number = findViewById(R.id.recipient_phone_number)\r\n        your_message = findViewById(R.id.your_message)\r\n\r\n        \/\/binding button with the variable\r\n        button = findViewById(R.id.send_your_sms)\r\n    }\r\n\r\n    private fun sendMessage()\r\n    {\r\n        \/\/fetching the number from edit text field\r\n        val number: String = recipient_number.text.toString().trim()\r\n        \/\/fetching your message from edit text\r\n        val msg: String = your_message.text.toString().trim()\r\n\r\n        if (number == \"\" || msg == \"\")\r\n        {\r\n            \/\/if number or message is empty\r\n            Toast.makeText(this, \"Please enter all the fields\", Toast.LENGTH_SHORT).show()\r\n        }\r\n        else\r\n        {\r\n            \/\/if both number and message is not empty\r\n            if (TextUtils.isDigitsOnly(number))\r\n            {\r\n                \/\/if number contains only digits\r\n                \/\/creating sms manager object\r\n                val smsManager: SmsManager = SmsManager.getDefault()\r\n                \/\/use sms manager api to send the message\r\n                smsManager.sendTextMessage(number, null, msg, null, null)\r\n                \/\/if the message is sent successfully then show toast\r\n                Toast.makeText(this, \"SMS Sent Successfully\", Toast.LENGTH_SHORT).show()\r\n            }\r\n            else\r\n            {\r\n                \/\/if number has other than digits then show wrong number\r\n                Toast.makeText(this, \"Wrong Number!\", Toast.LENGTH_SHORT).show()\r\n            }\r\n        }\r\n    }\r\n    override fun onRequestPermissionsResult(requestCode: Int, permissions: Array&lt;out String&gt;, grantResults:\r\n    IntArray)\r\n    {\r\n        super.onRequestPermissionsResult(requestCode, permissions, grantResults)\r\n\r\n        \/\/checking if the permissions are granted\r\n        if (requestCode == permissionRequest) {\r\n            if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {\r\n                sendMessage()\r\n            } else {\r\n                Toast.makeText(this, \"Please provide permission\",\r\n                    Toast.LENGTH_SHORT).show()\r\n            }\r\n        }\r\n    }\r\n\r\n    fun sendSMS(view: View)\r\n    {\r\n        \/\/when you press the button\r\n        val permissionCheck = ContextCompat.checkSelfPermission(this, Manifest.permission.SEND_SMS)\r\n        if (permissionCheck == PackageManager.PERMISSION_GRANTED)\r\n        {\r\n            \/\/if permission is granted, then send the message\r\n            sendMessage()\r\n        }\r\n        else\r\n        {\r\n            \/\/if not granted, then seek again\r\n            ActivityCompat.requestPermissions(this, arrayOf(Manifest.permission.SEND_SMS),\r\n                permissionRequest)\r\n        }\r\n    }\r\n}\r\n<\/pre>\n<p>So, now your application is ready.<\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/06\/App_Output_1-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-82822\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/06\/App_Output_1-1.jpg\" alt=\"Android Send SMS Application\" width=\"540\" height=\"1140\" \/><\/a><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/06\/App_Output_2-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-82823\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/06\/App_Output_2-1.jpg\" alt=\"Android Text Message\" width=\"540\" height=\"1140\" \/><\/a><\/p>\n<h3>Summary<\/h3>\n<p>So through this article, you got to know about the various ways for sending SMS to other devices using android. You saw in detail what an SMS Manager API is and how you can use several methods. Finally, you saw a demo of creating your messaging application.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today, we will cover yet another exciting topic. You might be well aware of the feature of sending SMS in android. Through this article, you will understand how you can send SMS to other&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":82819,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2791],"tags":[3805,3806,3807],"class_list":["post-82621","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-android","tag-send-sms-in-android","tag-sending-sms-in-android","tag-sending-text-message-in-android"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Send SMS in Android? - TechVidvan<\/title>\n<meta name=\"description\" content=\"Learn the various ways for sending SMS to other devices in Android. Learn about SMS Manager API &amp; methods with example.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/techvidvan.com\/tutorials\/send-sms-in-android\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Send SMS in Android? - TechVidvan\" \/>\n<meta property=\"og:description\" content=\"Learn the various ways for sending SMS to other devices in Android. Learn about SMS Manager API &amp; methods with example.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techvidvan.com\/tutorials\/send-sms-in-android\/\" \/>\n<meta property=\"og:site_name\" content=\"TechVidvan\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/TechVidvan\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-19T03:30:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-04T15:09:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/06\/Send-SMS-in-Android.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"TechVidvan Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:site\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"TechVidvan Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Send SMS in Android? - TechVidvan","description":"Learn the various ways for sending SMS to other devices in Android. Learn about SMS Manager API & methods with example.","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:\/\/techvidvan.com\/tutorials\/send-sms-in-android\/","og_locale":"en_US","og_type":"article","og_title":"How to Send SMS in Android? - TechVidvan","og_description":"Learn the various ways for sending SMS to other devices in Android. Learn about SMS Manager API & methods with example.","og_url":"https:\/\/techvidvan.com\/tutorials\/send-sms-in-android\/","og_site_name":"TechVidvan","article_publisher":"https:\/\/www.facebook.com\/TechVidvan\/","article_published_time":"2021-07-19T03:30:29+00:00","article_modified_time":"2024-08-04T15:09:56+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/06\/Send-SMS-in-Android.jpg","type":"image\/jpeg"}],"author":"TechVidvan Team","twitter_card":"summary_large_image","twitter_creator":"@vidvantech","twitter_site":"@vidvantech","twitter_misc":{"Written by":"TechVidvan Team","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techvidvan.com\/tutorials\/send-sms-in-android\/#article","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/send-sms-in-android\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22"},"headline":"How to Send SMS in Android?","datePublished":"2021-07-19T03:30:29+00:00","dateModified":"2024-08-04T15:09:56+00:00","mainEntityOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/send-sms-in-android\/"},"wordCount":613,"commentCount":0,"publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/send-sms-in-android\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/06\/Send-SMS-in-Android.jpg","keywords":["Send SMS in Android","Sending SMS in Android","Sending Text Message in Android"],"articleSection":["Android Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techvidvan.com\/tutorials\/send-sms-in-android\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techvidvan.com\/tutorials\/send-sms-in-android\/","url":"https:\/\/techvidvan.com\/tutorials\/send-sms-in-android\/","name":"How to Send SMS in Android? - TechVidvan","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/send-sms-in-android\/#primaryimage"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/send-sms-in-android\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/06\/Send-SMS-in-Android.jpg","datePublished":"2021-07-19T03:30:29+00:00","dateModified":"2024-08-04T15:09:56+00:00","description":"Learn the various ways for sending SMS to other devices in Android. Learn about SMS Manager API & methods with example.","breadcrumb":{"@id":"https:\/\/techvidvan.com\/tutorials\/send-sms-in-android\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techvidvan.com\/tutorials\/send-sms-in-android\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/send-sms-in-android\/#primaryimage","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/06\/Send-SMS-in-Android.jpg","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/06\/Send-SMS-in-Android.jpg","width":1200,"height":628,"caption":"Send SMS in Android"},{"@type":"BreadcrumbList","@id":"https:\/\/techvidvan.com\/tutorials\/send-sms-in-android\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techvidvan.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"How to Send SMS in Android?"}]},{"@type":"WebSite","@id":"https:\/\/techvidvan.com\/tutorials\/#website","url":"https:\/\/techvidvan.com\/tutorials\/","name":"TechVidvan Blogs","description":"","publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/techvidvan.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/techvidvan.com\/tutorials\/#organization","name":"TechVidvan","url":"https:\/\/techvidvan.com\/tutorials\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","width":200,"height":50,"caption":"TechVidvan"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/TechVidvan\/","https:\/\/x.com\/vidvantech"]},{"@type":"Person","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22","name":"TechVidvan Team","description":"The TechVidvan Team delivers practical, beginner-friendly tutorials on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our experts are here to help you upskill and excel in today\u2019s tech industry."}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/82621","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/comments?post=82621"}],"version-history":[{"count":2,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/82621\/revisions"}],"predecessor-version":[{"id":447579,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/82621\/revisions\/447579"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media\/82819"}],"wp:attachment":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media?parent=82621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/categories?post=82621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/tags?post=82621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}