How to Add SSL Certificate in Android Application and Solving SSL Handshake Exception

In this tutorial, I will guide you on How to integrate SSL Certificate in your Android Application and Fixing SSL Handshake Exception on Android Devices below API level 20. We will use below TLS SOCKET FACTORY class. import android.content.Context;import java.io.IOException;import java.io.InputStream;import java.net.InetAddress;import java.net.Socket;import java.net.UnknownHostException;import java.security.KeyManagementException;import java.security.KeyStore;import java.security.KeyStoreException;import java.security.NoSuchAlgorithmException;import java.security.cert.Certificate;import java.security.cert.CertificateException;import java.security.cert.CertificateFactory;import javax.net.ssl.SSLContext;import javax.net.ssl.SSLSocket;import javax.net.ssl.SSLSocketFactory;import javax.net.ssl.TrustManagerFactory;public […]

Android Grouped Stacked Bar Chart Using MpChart Kotlin

In this tutorial we will use popular Chart library for Android (MpAndroidChart). We will use BarChart View from MpChart Library. We will write code which will result in below Graph. Steps: Add Bar Chart View in XML Layout File. Prepare X-Axis values and Labels for Chart Data. Grouping –¬† Add multiple Bar Data Sets and […]

Android Expandable Listview Tutorial Kotlin

Introduction: ExpandableListView in Android is a View which is vertically scroll-able like normal ListView but it can have child items for each List Item. Child items in Expandable List View can be collapsed or expanded on clicking. Add ExpandableListView in XML Layout file <android.support.constraint.ConstraintLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:app=”http://schemas.android.com/apk/res-auto” android:layout_width=”match_parent” android:layout_height=”match_parent”> <ExpandableListView android:id=”@+id/rvFaqs” android:layout_width=”match_parent” android:layout_height=”0dp” android:layout_marginTop=”16dp” android:groupIndicator=”@null” app:layout_constraintBottom_toBottomOf=”parent” […]

Android App Language Change Localization Programatically kotlin Example

Introduction This tutorial will explain you how to change your application language at run time (programatically). In certain cases your Android Application is supposed to support multiple languages for example English, Arabic, French. This concept is known as Localization. Developer design app layout in such a way that layout support Right to Left (rtl) support […]

Right way of using vector drawables in Android Studio

In this tutorial I will guide you on How to import Vector Assets and Drawables in your Android application. I will also cover how to give support for devices which do not support vector assets using AppCompat library. Importing Vector Asset using Android Studio In case of Vector Assets You do not directly copy paste […]

Custom Spinner with ImageView and TextView in Android Kotlin Tutorial

In this tutorial, We will implement Custom Spinner Adapter using Kotlin. We will use Base Adapter class and custom layout for spinner adapter item. We will display spinner item with ImageView and TextView. We will also cover: Spinner on item select listener. Adding hint in spinner (Add first item in spinner as Hint and change […]

Begin typing your search term above and press enter to search. Press ESC to cancel.

Back To Top