Well, you have probably already changed color of your application’s Status Bar a lot times before. But probably faced few issue around when changing theme of whole applications or sometimes when small notification icons are not visible because the status bar is too Light in color or too Dark in color.

So how to resolve these issues by single method when changing the color of the status bar?

Here is how.

Create a class Extenstions.kt if not already created. Then in that file add these few methods.

Then in your activity call like :

And in your Fragment…

So, let’s begin the story of QUICK-SORT, if you are new to programming, then this is a good article for you. But we are not jumping to QUICK-SORT right away, first, we will solve few simple problems and then keep updating these problems and end up creating a solution for QUICK-SORT.

Problem 1) Write a program Segregate 0s and 1s in an Array.

It’s like segregating dividing Apple(🍎) and Oranges(🍊) from a basket, right. So what we do is take another basket and for every fruit (i.e. 🍎 and 🍊) if we encounter a 🍊 , we put that into the second basket.
Problem solved, right?
This is a very common problem and can…


Using WebViews in your native application is very common these days but when it comes to performance, rendering of a WebView is quite slow. As most of the heavy lifting done by WebView is loading images. In our Web-Pages we tend to use many images and most of those images are really large in size and loading them every time the user opens the App’s WebView is not good.

I read about how to increase performance of WebView by implementing Caching web resources like JS, CSS and image files. You can also static resources in your native application, and by…

Problem: An XOR Linked list is a more memory efficient doubly linked list. Instead of each node holding next and previous fields, it holds a field named both (addr in our case), which is an XOR of the next node and the previous node. Implement an XOR linked list; it has an insert(element) which adds the element to the end, and a get(index) which returns the node at index.

Points to know before understanding the following solution.

  1. Every object is stored at memory address and any pointer (reference) is a way to access that object.
  2. In C++ you can…

So what is a DeepLink?

DeepLinks are a concept that helps users navigate between the web and applications. They are basically URLs which navigate users directly to the specific content in applications.

So DeepLink is an URL which can directly land you to a particular application in your Android or IOS device.

But what if there is more than one application that can handle a particular type of link. Usually, this is the case when there more one application that can edit your image, crop your image, play a video and social media applications that accept any type of content…

In Android, there are many ways to create an animation. From transitioning activities with animation to showing and hiding views, you get many choices when creating animations. You can useanimation drawables, create custom translations using Animation java class, there are ObjectAnimators and ValueAnimators too and simply there is the animate() method for every view available, why not just use that. But creating an efficient SlideUp and slideDown animation is always been a problem for many developers. To create Slide up/down animation you can go for translating views from some negative top margin to zero top margins or if it is…

Just after android introduced `Recycler View` which is nowadays being used really extensively and became most essential part of our Android Applications. But we are still unaware of the many applications of the customizable recycler view. Lets first discuss the advantages Recycler View has over ListView.

Well, these are the few benefits we get when we use RecyclerView and ignore the old ListView.

  1. Enforced ViewHolder Pattern
  2. Horizontal Linear Layout Manager and Grid Layout Manager
  3. Item Animator
  4. Easy to create a different type of views by just passing view type in onCreateViewHolder method.
  5. Enabling change notification on item or item range…

When building mobile applications you will often need to store persistent data on the device itself. This type of storage allows your applications to function effectively when there is no connection as well as offering more advanced and often faster functionality than server-side storage only. But as we are moving toward offline-first applications we need to have both client-side storage and server-side storage and your application will manage the flow of data between the client and server. Application Craft provides all the tools you need to do this. But choosing between different types of persistent storage on the client-side is…

Mudit Sen

Senior Android Developer.

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