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.
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…
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
Protecting Tools for Android App
In Android Studio, there are 2 tools to protect it.
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
A. New tool replacement of ProGuard
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.
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…
It is use to represent visibility and location of a variable.
1. Variable Scope
2. Variable Location
3. Initial value of variable /Default of variable
4. Lifetime of variable
5. Who can access variable
1. It is default variable declaration class; all variables declare without or with auto keyword comes…
Use of java.util.function Package
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: