Everybody makes wishes. Be it for somebody’s happiness or for themselves. We make wishes at different stages of our lives and in different states of our minds. We may wish differently when we are sad compared to when we are happy. We make our wishes depending on the situations we are in. But do you ever think before making a wish to God or about the consequences it may have in the future?

Wishes! Wishes! Wishes!

What we wish today, we might regret it later. Let me explain it with the most common scenario.

Let’s assume that the letters mentioned in the below…


Event handling is a complex process when it comes to Android because we need to consider the lifecycle of the components too. In this blog post, we will be covering how we can use Android’s own LocalBroadcastManager API to send and receive events between different components of the Application.

What is LocalBroadcastManager?

From the official documentation

Helper to register for and send broadcasts of Intents to local objects within your process.

In simple words, LocalBroadcastManager is used to register BroadcastReceivers which are based on the publish-subscribe pattern. Meaning we can publish events from one place and can listen to them at another.

Let’s…


In this post, we are going to learn some tricks about ConstraintLayout to build a more flexible UI for our Android Application.

What is ConstraintLayout?

According to the official documentation:

ConstraintLayout allows you to create large and complex layouts with a flat view hierarchy (no nested view groups). It's similar to RelativeLayout in that all views are laid out according to relationships between sibling views and the parent layout, but it's more flexible than RelativeLayout and easier to use with Android Studio's Layout Editor.

ConstraintLayout helps us to maintain a flat view hierarchy and ultimately increasing the performance. There are many benefits of…


Everything is a widget in Flutter.

As flutter is all about widgets it is vital to understand the behavior of these widgets.

There are two types of widgets in flutter:

  1. Stateless Widgets
  2. Stateful Widgets

In this post, I am going to discuss about stateful widgets.

Stateful Widgets

A stateful widget is made from two things: widget and state.


We have often come across the problem when we make little changes to our code and we have to publish a new version of our library or app. Well, we can use a better way to manage this by loading code dynamically.

DCL(Dynamic code loading) allows an application to load code that is not part of its static, initial codebase. The additional code can be retrieved from a remote location and executed at runtime.

Benefits:

Code Reuse: If you have multiple apps with similar functionalities, then instead of rewriting the code you can store them in a common location and reuse…


We all come at a stage while developing Android Apps that we need to do work which is time consuming and includes networking. Well if you are not a beginner you must be knowing a little about services. I will discuss briefly about service and then we will dive a little deeper into it.

What is a Service?

According to official docs: A Service is an application component that can perform long-running operations in the background, and it doesn't provide a user interface.

Now let’s understand it in simple words. A service is simply an android component which allows us to do resource intensive…

Kalpesh Chandora

Android Developer at upGrad

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