Posts

Showing posts with the label android studio compose

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

Picture In Picture - Android Studio - Compose

Image
How to add Picture In Picture Mode in the Android app? Android 8.0 (API level 26) allows activities to launch in the picture-in-picture (PIP) mode. PIP is a special type of multi-window mode mostly used for video playback. It lets the user watch a video in a small window pinned to a corner of the screen while navigating between apps or browsing content on the main screen. The PIP window appears in the top layer of the screen in a corner chosen by the system. >> Check For Java >> Check For Kotlin >> Check For Compose Step 1: Create a new project   OR   Open your project Step 2: Create another activity named PIPActivity Step 3: Add the following properties to the PIPActivity in AndroidManifest <activity android:name= ".PIPActivity" android:configChanges= "screenSize|smallestScreenSize|screenLayout|orientation" android:launchMode= "singleTask" android:resizeableActivity= "true" ...

Calculator App - Android Studio - Compose

Image
How to develop a complete Calculator App using Android Studio and Compose I’ve created a modern calculator app using Android Studio (Java) with a clean and colorful interface. It supports all standard arithmetic operations, including addition, subtraction, multiplication, division, brackets, and percentages (%). The app accurately handles expressions like: 25+(10/2)-5*(5%*2)+20+50% = 74.25 Designed with a responsive layout, bright orange and blue buttons, and smooth calculation handling — it’s perfect for anyone learning Android development or wanting to build a fully functional calculator UI from scratch. >> Check for Java >> Check for Kotlin >> Check for Compose Code MainActivity.kt package com.technifysoft.myapplication import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.compose.foundation.background import androidx.compose.foundation.layout.* import androidx.compose.foundatio...