Posts

Showing posts with the label share text

Send Email using Intent - Android Studio - Compose

Image
How To Send an Email Using the Intent Learn how to implement email functionality in your Android app using Kotlin Compose and Android Studio IDE. This step-by-step guide covers using Android Intents to launch email clients with pre-filled recipient addresses, subjects, and message bodies. >>  Check For Java >>  Check For Kotlin >>  Check For Compose Code: AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android= "http://schemas.android.com/apk/res/android" xmlns:tools= "http://schemas.android.com/tools" > <!--For Gmail Intent: Since Android 11 (API level 30), most user-installed apps are not visible by default. In your manifest, you must statically declare which apps you are going to get info about, as in the following:--> <queries> <package android:name= "com.google.android.gm" /> </queries> <application ...

Send Email using Intent - Android Studio - Kotlin

Image
How To Send an Email Using the Intent Learn how to implement email functionality in your Android app using Kotlin and Android Studio IDE. This step-by-step guide covers using Android Intents to launch email clients with pre-filled recipient addresses, subjects, and message bodies. >>  Check For Java >>  Check For Kotlin >>  Check For Compose VIDEO Step 1:  Create a new Project   or   open your project Step 2: Code AndroidManifest.xml <manifest xmlns:android= "http://schemas.android.com/apk/res/android" xmlns:tools= "http://schemas.android.com/tools" > <!--For Gmail Intent: Since Android 11 (API level 30), most user-installed apps are not visible by default. In your manifest, you must statically declare which apps you are going to get info about, as in the following:--> <queries> <package android:name= "com.google.android.gm" /> </queries> .... </manifest...

Send Email using Intent - Android Studio - Java

Image
How To Send an Email Using the Intent Learn how to implement email functionality in your Android app using Java and Android Studio IDE. This step-by-step guide covers using Android Intents to launch email clients with pre-filled recipient addresses, subjects, and message bodies. >>  Check For Java >>  Check For Kotlin >>  Check For Compose VIDEO Step 1:  Create a new project   OR   Open your project Step 2: Code AdroidManifest.xml <manifest xmlns:android= "http://schemas.android.com/apk/res/android" xmlns:tools= "http://schemas.android.com/tools" > <!--For Gmail Intent: Since Android 11 (API level 30), most user-installed apps are not visible by default. In your manifest, you must statically declare which apps you are going to get info about, as in the following:--> <queries> <package android:name= "com.google.android.gm" /> </queries> .... </manifest...

Share text of TextView on button click (Kotlin) - Android Studio

Image
In this tutorial we will learn how to share text of a TextView on button click. When the button is clicked bottom sheet will appear listing the apps that can share that text... Step 1:   Create a new project  OR  Open your project Step 2: Code activity_main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android= "http://schemas.android.com/apk/res/android" xmlns:tools= "http://schemas.android.com/tools" android:layout_width= "match_parent" android:layout_height= "match_parent" android:orientation= "vertical" android:padding= "10dp" tools:context= ".MainActivity" > <TextView android:id= "@+id/textView" android:textAlignment= "center" android:layout_width= "match_parent" android:layout_height= "wrap_content" android:text= ...

Share text of TextView on button click - Android Studio

Image
How to Share text of TextView on Button click - Android Studio In this tutorial we will learn how to share text of a TextView on button click. When the button is clicked bottom shit will appear listing the apps that can share that text... Step 1:  Create a new project OR Open your project Step 2: Code activity_main.xml <LinearLayout xmlns:android= "http://schemas.android.com/apk/res/android" xmlns:tools= "http://schemas.android.com/tools" android:layout_width= "match_parent" android:layout_height= "match_parent" android:orientation= "vertical" android:padding= "10dp" tools:context= ".MainActivity" > <TextView android:id= "@+id/textView" android:textAlignment= "center" android:layout_width= "match_parent" android:layout_height= "wrap_content" android:text= "This is the text...