Posts

Showing posts from November, 2018

Write PDF - Android Studio - Kotlin

Image
Write PDF using EditText: 1) We will use iText PDF Library to create pdf  2) We will input text Using EditText  3) Button to save text as PDF file  4) It will require WRITE_EXTERNAL_STORAGE permission to save pdf file,  5) We'll handle runtime permission too >> Watch For Java Library Link:  https://developers.itextpdf.com/itextg-android VIDEO : Step 1:  Create a new Project   or   open new project Step 2: Add following library in build.gradle(Module:app) dependencies { compile 'com.itextpdf:itextg:5.5.10' } Step 3: Add WRITE_EXTERNAL_STORAGE permission in AndroidManifest Step 4: Code AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android= "http://schemas.android.com/apk/res/android" package= "com.blogspot.atifsoftwares.writepdf_kotlin" > <!--storage permission--> <uses-permission android:name= "an...

Write PDF - Android Studio - Java

Image
Write PDF using EditText: 1) We will use iText PDF Library to create pdf  2) We will input text Using EditText  3) Button to save text as PDF file  4) It will require WRITE_EXTERNAL_STORAGE permission to save pdf file,  5) We'll handle runtime permission too >> Watch For Kotlin Library Link:  https://developers.itextpdf.com/itextg-android VIDEO: Step 1:  Create a new project   OR   Open your project Step 2: Add following library in build.gradle(Module:app) dependencies { compile 'com.itextpdf:itextg:5.5.10' } Step 3: Add WRITE_EXTERNAL_STORAGE permission in AndroidManifest Step 4: Code AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android= "http://schemas.android.com/apk/res/android" package= "com.blogspot.atifsoftwares.writepdf_java" > <!--add permission--> <uses-permission android:name= "android.permission...

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

Dialer Intent - Android Studio - Kotlin

Image
How to launch dialer pad with a specific phone number using Intent Learn how to easily open the phone dialer or make a direct call in your Android app using Kotlin. This step-by-step guide explains how to use  Intent.ACTION_DIAL  and  Intent.ACTION_CALL , request runtime permissions, and write clean Kotlin code in Android Studio. Ideal for beginners and professional Android developers looking to integrate calling features into their apps. >>  Check For Java >>  Check For Kotlin >>  Check For Compose Video Step 1:  Create a new Project   or   open new 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:app= "http://schemas.android.com/apk/res-auto" xmlns:tools= "http://schemas.android.com/tools" android:layout_width= "match_parent" android:layout_height= "match_pa...