Android

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 »

Android Audio Recorder Example

This tutorial is about how to implement audio recorder in android with the help of a simple application. MediaRecorder Class In android, MediaRecorder class will provide a functionality to record audio or video files. In android, to record an audio we need to use device’s microphone along with MediaRecorder class. In case, if we want to record video, we

Android Audio Recorder Example Read More »

Android Jetpack CameraX Example

This post is about Android Jetpack CameraX API and how to implement it in an android application with a simple basic example. CameraX CameraX is a Jetpack support library, makes it easier to add camera capabilities to your app. It has backward compatibility down to Android API 21. It uses a simpler, use case-based approach

Android Jetpack CameraX Example Read More »

Android Jetpack Proto DataStore Example

This blog is about Android Jetpack Proto DataStore and how to implement Proto DataStore in our Android application. Proto DataStore Proto DataStore stores data as objects of a custom data type. When using Proto DataStore, you have to define a schema using protocol buffers. Creating New Project 1 . Create a new project by going to File ⇒ New

Android Jetpack Proto DataStore Example Read More »

Android Jetpack Preferences DataStore Example

This blog is about Android Jetpack DataStore Preferences and how to implement DataStore Preferences in our Android application. DataStore Jetpack DataStore is a data storage solution. It allows us to store key-value pairs (like SharedPreferences) or typed objects with protocol buffers (discuss in the next article). DataStore uses Kotlin, Coroutines and Flow to store data asynchronously with consistency

Android Jetpack Preferences DataStore Example Read More »

Android highlight the paragraph in TextToSpeech

This post is about how to change paragraph color which is current speaking in TextToSpeech. Creating new project 1. Create a new project by going to File ⇒ New Android Project, fill the required details and then click on finish. 2. The below layout file consist of two textView and a button to trigger an event that will highlight the

Android highlight the paragraph in TextToSpeech Read More »