Beginner

Android ExoPlayer Example in Kotlin

This post is based on implementing Exoplayer Library to play media files on Android. ExoPlayer  ExoPlayer is an open source library maintained by Google. It  supports a wide range of media files including DASH and HLS streaming which is not supported by the MediaPlayer. It provides you the ability to customize your media player according […]

Android ExoPlayer Example in Kotlin Read More »

Android Read and Write Internal Storage Example

This article is about how to (write a file to / read a file from) the internal storage of an android device with the help of a simple application.

Android Read and Write Internal Storage Example Read More »

Android read a file from assets in java/Kotlin

This article is about how to read a file from the assets folder in android in both languages Java/Kotlin. Creating Assets folder and a file 1. To create an asset folder in Android studio open your project in Android mode. Go to the app > right-click > New > Folder > Assets Folder.   2. Android Studio will

Android read a file from assets in java/Kotlin Read More »

Android BottomNavigationView Example in Kotlin

This article is about Android BottomNavigationView (represents a standard bottom navigation bar for application) and how to combine it with Fragments with the help of a simple application.

Android BottomNavigationView Example in Kotlin Read More »

Android DialogFragment Example

This article is about Android DialogFragment and how to work with it with the help of simple examples. Android DialogFragment A Dialog Fragment is a fragment that is used to make Dialogs that floats on Activity.   Android DialogFragment A DialogFragment is a fragment that is used to make Dialogs that floats on Activity. DialogFragment

Android DialogFragment Example Read More »

Android TextView ellipsize property example

This article is about how to work with Android TextView ellipsize property. Android Ellipsize Android TextView ellipsize property Causes words in the text that are longer than the view’s width to be ellipsized ( means to shorten text using an ellipsis, i.e. three dots …) instead of broken in the middle to fit it inside the given

Android TextView ellipsize property example Read More »

Android Working With Fragments

This tutorial is about how to create a fragment and include it in an activity with the help of an example. Create a fragment class To create a fragment, we have to define a fragment class, which extends the class Fragment and overrides the necessary methods. class FragmentOne : Fragment() {     override fun onCreateView(

Android Working With Fragments Read More »

Android Broadcast Receiver Example

This article is about Android broadcasts, broadcastReceiver, and how to work with the broadcastReceiver with the help of a simple example. Broadcasts Broadcasts are messages that the Android system and Android apps send when an event of interest occurs. The broadcast message itself is wrapped in an Intent object. There are two types of broadcasts: System

Android Broadcast Receiver Example Read More »

Activity Lifecycle in Android

This tutorial is about Activity in Android, Activity Lifecycle, Real example use-cases of Activity Lifecycle. Activity In Android, an Activity is referred to as one screen in an application. An activity provides the window in which the app draws its UI. An Android app consists of one or more screens or activities. For example, when we

Activity Lifecycle in Android Read More »