Posts

Showing posts with the label android tutorials

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 ...

Pick Multiple Images from the Gallery - Android Studio - Compose

Image
How to pick multiple images from the Gallery? There are some scenarios in which we need to pick multiple images from the  Gallery . For example, on  Facebook,  you are familiar with adding multiple images in a single Post. In this tutorial, we will learn how can upload multiple images from the  Gallery . You can pick single or as well as multiple images after learning this tutorial. After picking images, we will show those images in  ImageSwitcher . If you want to learn to pick a single Image from the Gallery, you can check for  Java  OR  Kotlin  OR  Compose >>  Check For Java >>  Check For Kotlin >>  Check For Compose Code MainActivity.kt package com.technifysoft.myapplication import android.net.Uri import android.os.Bundle import android.widget.Toast import androidx.activity.ComponentActivity import androidx.activity.compose.rememberLauncherForActivityResult import androidx.activity.compos...

Pick an Image from the Gallery – Android Studio - Compose

Image
How to Pick an Image from the Gallery? In this tutorial, we will walk through the complete process of selecting an image from the device’s Gallery in an Android application. This feature is commonly used in many modern apps—for uploading profile pictures, choosing photos for posts, or attaching images to forms. We will start by creating a simple layout with a button that the user can tap to open the Gallery. Once the button is clicked, the system’s built-in image picker will appear, allowing the user to browse their photo library and select a single image. After the user chooses an image, we will retrieve its URI and display it inside an  ImageView  within our app. >> Check for Java >> Check for Kotlin >> Check for Compose Code: MainActivity.java package com.technifysoft.myapplication import android.net.Uri import android.os.Bundle import android.widget.Toast import androidx.activity.ComponentActivity import androidx.activity.compose.rememberLaunc...

Google Map Intent - Android Studio - Compose

Image
How to open Google Maps with directions to a specific location (Latitude, Longitude)? You may have a scenario where you want to open a specific location on Google Maps by clicking a button. In this tutorial, we will input the latitude and longitude, and by clicking a button, we will open that location in Google Maps. >> Check For Java >> Check for Kotlin >> Check for Compose Code MainActivity.kt package com.technifysoft.myapplication import android.content.Context import android.content.Intent import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foun...