What is EventBus?

EventBus is an open-source library for Android using Java and Kotlin for based on loose coupling pattern. EventBus enables or provides central communication to decoupled classes with just a few lines of code — simplifying the code, removing dependencies, and speeding up app development.

Figure 1: EventBus Event Lifecycle

Advantages of using…


Lifecycle-aware components perform actions in response to a change in the lifecycle status of activities and fragments. These Lifecycle-aware components help us to produce better-organized, and often lighter-weight code, that is easier to maintain.

A common pattern that we use to add our all codes in the methods of lifecycle…


Running Single Thread in Java:

In this java, it was very simple to write multi-threading programming as shown in image below, just we have to extends Thread class or implements Runnable interface and then override run method in it.

Let’s take an example to remember or understand multi-threading programming in Java. In this program I…


What is Coroutines?

Coroutines = Co + Routines

  • Here, Co means cooperation and Routines means functions.
  • It means that when functions cooperate with each other is called Coroutines.
  • Coroutines make writing asynchronous and non-blocking code easy to read and understand by eliminating the need to handle traditional callback pattern.
  • It…

Protecting Tools for Android App

In Android Studio, there are 2 tools to protect it.

  1. ProGuard:

A. It is Open Source Tools for Obfuscating Android Code

B. Obsoleted by R8

C. Used before Android Studio Gradle plugin 3.4.0 or below

2. R8:

A. New tool replacement of ProGuard

B. Development…


View binding is a feature in Android Programming that allows you to replace findViewById(), and write your code more easily that interacts with views. Once view binding is enabled in a module, it generates automatically a binding class for each XML layout file present in that module. …


Python is amazing language, it is very easy to play with code using Python, In this article, we are going to learn, how could we make Advance VLookup as we use in MS Excel. By using this code, you can merge multiple excel sheets into single excel sheets using Python.


  1. What is Dynamic Memory Allocation?

Runtime memory allocation is called dynamic memory allocation.

2. Why Dynamic Memory?

A. Efficient use of memory by saving waste memory.

B. To overcome Array size limitation.

C. To create new data structure using linked list, graph, stack and queue.

3. How can be performed…


What is Storage Classes?

It is use to represent visibility and location of a variable.

What does storage classes describe?

1. Variable Scope

2. Variable Location

3. Initial value of variable /Default of variable

4. Lifetime of variable

5. Who can access variable

Types of storage classes:

A. Auto Storage Class

1. It is default variable declaration class; all variables declare without or with auto keyword comes…


Use of java.util.function Package

Use of Package java.util.function

This java.util.function package provides standard library-based functional interfaces for common requirements with their corresponding lambda expression, which can be used by the programmer in his code instead of creating brand new functional interfaces.

List of most commonly used Functional Interfaces under this package are:

1. Function

Dr. Vipin Kumar

Assoc. Prof. , DCA & Addl. Head (SD), SDFS, at KIET, M. Tech (CS), PhD (CS) My Blogs: http://blackhatkoders.blogspot.com, My YouTube Channel: Dr. Vipin Classes

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store