---
title: "Discussion on \"Share Text or Link in Share via Android\" | Hashnode"
description: "Discussion on \"Share Text or Link in Share via Android\". fun Context.shareText(message: String) {\n    val intent = Intent(Intent.ACTION_SEND)\n    intent.type = \"text/plain\"\n    intent.putExtra(Intent.EXTRA_TEXT, message)\n    ContextCompat.startActivity(\n        this,\n        Intent.createChooser(\n         ..."
url: "https://hashnode.com/posts/share-text-or-link-in-share-via-android/63a582b010d0888d124dfa97"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Share Text or Link in Share via Android](https://kotlinfan.hashnode.dev/share-text-or-link-in-share-via-android?utm_source=hashnode&utm_medium=feed)

fun Context.shareText(message: String) { val intent = Intent(Intent.ACTION\_SEND) intent.type = "text/plain" intent.putExtra(Intent.EXTRA\_TEXT, message) ContextCompat.startActivity( this, Intent.createChooser( ...

Dec 23, 2022 · 1 min read · kotlinfan.hashnode.dev  
Read the article

## Written by

[Raju Shingadiya](https://hashnode.com/@raju348636)

@raju348636 · Rajkot, Gujarat, India

  
[View profile](https://hashnode.com/@raju348636)

Kotlin Fan

I am Android Developer from India. Always Loved to program high-quality apps to make human life easy. you can always find me on GitHub.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
