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 Email Using Intent In this article, we will learn how to send the Email using the intent. We will input the receipt email(s), subject, and message to send via email.  >> Watch For Java 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> activity_main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android= "http://schemas.android.com/a

Send Email using Intent | Android Studio | Java

Image
How To Send Email Using Intent In this article, we will learn how to send the Email using the intent. We will input the receipt email(s), subject, and message to send via email. >> Watch For Kotlin 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> activity_main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android= "http://schemas.android.com/a

Dialer Intent - Android Studio - Kotlin

Image
This video tutorial will show you how to Input Phone number or *# code and pass it to Dialer Intent using Java language and Android Studio. >> Watch For Java 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_parent" android:gravity= "center" android:orientation= "vertical" tools:context= ".MainActivity" > <!--Edit text to input number/code--> <EditText android:id= "@+id/numberEt"