Geofence API gives a device the power of monitoring the circular area in the world

Image for post
Image for post
Photo by KOBU Agency on Unsplash

Google Geofence API is used when you want to notify users if they are near the specific area in the world (such as Shopping Malls, Airport, Restaurants etc.). For example, the customer has installed an online shopping app and if they are near one of the stores that the app has a tie up with, then store could generate a notification in the app to let the customer know that the store near them has a special offer running for them. This way you can engage more users.

Get the Google Maps API Key

To use the Geofence API, you’ll have to obtain the Google Maps API key using the following set of steps. …

An ideal way of scheduling future tasks with backward compatibility

Image for post
Image for post
Photo by Fernando Jorge on Unsplash

The WorkManager is an API which can schedule your future asynchronous tasks and can run them in the background. The tasks assigned to the WorkManager are executed even if the user is outside the app or app is closed. WorkManager can run your task(s) for one time only as well as many times or periodically.

Features of WorkManager

  • It provides backward compatibility up to API level 14
  • You can add one or many constraints, such as execute tasks only when phone is charging or phone is restarted etc.
  • You can schedule onetime task or periodic tasks
  • You can also chain multiple tasks. For instance, task (B) should only be executed when task (A) is finished. …

We’re going to implement live Coronavirus cases Apis with LiveData & MVVM

Image for post
Image for post
Photo by Dương Trần Quốc on Unsplash

What we will build?

We’ll build an Android Application which will show the live cases of Coronavirus in RecyclerView. We’ll follow the MVVM Architecture Pattern, and implement LiveData with Kotlin.

Our final application will something like this.

Exposing one of the finest ways of keeping your App’s credentials safe.

Image for post
Image for post
Credit to Google

As a Software Developer, you must be worried about your app credentials such as remote server “API_KEY”, ”DATABASE_USERNAME” and “DATABASE_PASSWORD” etc. And of course, it's really a thing to be worried about, right?. But do we still have the solution to this problem? or do we still store our App credentials inside the or build.gradle? and if we do, then I would say these are the old ways. Because once your app becomes popular, then someone can decompile to view the BuildConfig to get the secret keys, and this could land you into serious trouble. …

Let’s understand how this design pattern could provide greater ease to maintain the giant project’s code with less effort

Image for post
Image for post
Photo by Simon Rae on Unsplash

In Android, we have a problem arising from the fact that Android activities are closely coupled to both UI and data access mechanisms. But application code must be easily scalable, maintainable, readable and also testable, etc. To achieve all of this, we’ll use MVP architectural pattern which divides applications into three layers. And three layers are Model, View and Presenter.

Model View Presenter (MVP)

  • Model: This handles the data part of our application
  • View: This is responsible for laying out views with the relevant data as instructed by the Presenter
  • Presenter: It acts as a bridge that connects a Model and a View

Note: Presenter is the intermediator between Model and View which means View and Model can’t communicate directly with each other. …

An article to understand the Microservice in a simplest terms

Image for post
Image for post
Photo by Christian Fregnan on Unsplash

Microservice is a software development technique which aims to break down the components of the applications into smaller parts which are independent from each other and can work together. Breaking down the application components provide ease in development, increase code readability and also codebase becomes easy to maintain and test.

Why Microservices

To proceed further with Microservices, firstly understand what is the monolithic architectures.

Monolithic means composed all in one place. Monolithic is a traditional way of writing code which incorporates components of the software in a single container and these components are interconnected ,dependent and tightly coupled. …

In this guide, we’ll learn 10 smart ways to optimise your Google search queries

Image for post
Image for post
Photo by Deva Darshan on Unsplash

We all use Google in our daily life to search our queries and we get the response accordingly. But you might have come across a situation where you searched your query but didn’t get the exact links what you’ve been searching for and waste a lot of time to find the exact piece of information you needed. It happens due to Unoptimized queries, so in this guide we’ll learn those tricks which will help save your time as well as give you the exact information you needed.

Table of content

  • Site Search
  • Related Words
  • The wildcard
  • Time Range
  • File Types
  • The OR operator
  • Word…

A complete guide of blockchain technology

Image for post
Image for post
Photo by Shaojie on Unsplash

The term Blockchain might sound like its too much complicated at first but to be honest its not, if i break this term down into two new words, then they are block and chain. And now block means the container or box which can contain the information such as transactions date, amount of money transferred or deposited and the name of a person whom money was sent. So in simplest term, blockchain is the chain of blocks which are interconnected by a link or node.

What we will learn from this guide

  • Introduction to Blockchain Technology
  • How it works?
  • How blockchain going is to disrupt various industries? …

In this article, we’ll see the differences between Java Virtual Machine and Dalvik Virtual Machine

Image for post
Image for post
Photo by patricia serna on Unsplash

When I was learning Java programming seven years ago from now, I used to ask a lot of questions from myself and friends about this marvellous language but there was one question which popped up most of the time until I didn’t find the satisfactory answer. The question was why java bytecode can run on any machine or platform and how it is different from the other code?. The answer to this question was not easy for me at that time because I was just getting started.

So in this guide, I’m going to answer the following questions

  • JVM vs…

A guide to performing basic operations on files using Python

Image for post
Image for post
Photo by Kelly Sikkema on Unsplash

Even if you’re a beginner, intermediate, or senior developer, it doesn’t actually matter because one day you’ll have to deal with file handling.

File handling is nothing but a combination of various operations performed on the files such as opening the file, reading the file, and writing the file, etc.

There are generally two types of files — text file and binary file.

A text file stores the textual information, for example, any message saying “Hello World” and saved as .txt extension, while images are stored in the form of binary numbers such as 0’s or 1’s and saved as .bin …


Himanshu Verma

Editor of The Code Monster ( Android & IOS Developer | Researcher | ML & Data Science Enthusiastic | Blogger | FA

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