Posts

Showing posts from September, 2018

AdMob Ads - Android Studio Tutorial

Image
In this video series we will work on AdMob Ads ✓ Banner Ads ✓ Interstitial Ads ✓ Rewarded Video Ads

Take Picture with Camera - Android Studio - Kotlin

Image
In this video, we will capture images with Camera using the Camera Intent. The camera will be opened after clicking the button. If an image is captured it will be set to an ImageView. We will require the following permission:  1) CAMERA  2) WRITE_EXTERNAL STORAGE  So we will also handle Runtime Permission for OS Marshmallow and above. >> Watch for java VIDEO Step 1:  Create a new Project  or  open new project Step 2: Code AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android= "http://schemas.android.com/apk/res/android" package= "com.blogspot.atifsoftwares.takepicture_kotlin" > <!--Adding Camera, Write External Storage Permission--> <uses-permission android:name= "android.permission.CAMERA" /> <uses-permission android:name= "android.permission.WRITE_EXTERNAL_STORAGE" /> <application android:allowBackup

Take Picture with Camera - Android Studio - Java

Image
In this video, we will capture images with Camera using the Camera Intent. The camera will be opened after clicking the button. If an image is captured it will be set to an ImageView. We will require the following permission:  1) CAMERA  2) WRITE_EXTERNAL STORAGE  So we will also handle Runtime Permission for OS Marshmallow and above. >> Watch For Kotlin VIDEO Step 1:  Create a new project   OR   Open your project Step 2: Code AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android= "http://schemas.android.com/apk/res/android" package= "com.blogspot.atifsoftwares.takepicture_java" > <!--Adding Camera, Write External Storage Permission--> <uses-permission android:name= "android.permission.CAMERA" /> <uses-permission android:name= "android.permission.WRITE_EXTERNAL_STORAGE" /> <application android

Pick an Image from the Gallery – Android Studio - Kotlin

Image
How to pick an image from the Gallery? In this video, we will pick an image from Gallery on Button click and set that image to an ImageView.  For this, we will also handle Runtime Permission for READ_EXTERNAL_STORAGE if the system OS is Marshmallow or above. If you want to learn to pick Multiple Images from Gallery you can check for Java OR Kotlin. >> Check For Java VIDEO: Step 1:  Create a new Project  or  open new project Step 2: Code AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android= "http://schemas.android.com/apk/res/android" package= "com.blogspot.atifsoftwares.imagepick_kotlin" > <!--Adding Read External Storage Permission--> <uses-permission android:name= "android.permission.READ_EXTERNAL_STORAGE" /> <application android:allowBackup= "true" android:icon= "@mipmap/ic_laun

Pick an Image from the Gallery – Android Studio - Java

Image
How to Pick an Image from the Gallery? In this video, we will pick an image from Gallery on Button click and set that image to an ImageView.  For this, we will also handle Runtime Permission for READ_EXTERNAL_STORAGE if the system OS is Marshmallow or above. If you want to learn to pick Multiple Images from Gallery you can check for Java OR Kotlin. >> Check for Kotlin Video: Step 1: Create a new project   OR   Open your project Step 2: Code AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android= "http://schemas.android.com/apk/res/android" package= "com.blogspot.atifsoftwares.imagepick_java" > <!--//Adding Read External Storage Permission--> <uses-permission android:name= "android.permission.READ_EXTERNAL_STORAGE" /> <application android:allowBackup= "true" android:icon= "@mipmap/ic_launcher"

Text Color of a Substring - Android Studio - Kotlin

Image
We will change the color of some sub-strings of text of TextView using the ''SpannableString'', and "ForeGroundColorSpan" classes using Android Studio IDE and Java language ✓RED ✓GREEN ✓BLUE Check 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" ?> < android . support . constraint . ConstraintLayout 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" tools: context = ".MainActivity" > < TextView android: id = "@+id/text_view" android: textSize = "20sp" android: layout_width = "wrap