-
React Native Module Bridge Documentation
The document demonstrates the steps to create react native module bridge in Android and iOS. Below are the steps for creating a native bridge in Android. ANDROID Open the Android Studio with the corresponding project from your react native project. […]
-
What is ButterKnife?
What is ButterKnife? Its a kind of view injection in Activities or Fragments using Annotations. Butterknife can be used to 1. Bind Views 2. Bind Clicks 3. Can be used with resources like strings, colors, Dimens, Drawables etc. Below are […]
-
How to call a click on a button Programatically?
The click on a button or View is usually called when the user clicks on it. But how can we call it programatically. Here is a simple example yes “performClick()”, this is how to call click programatically.
-
How to Check if your app is in Foreground or Background?
Here is a simple way to check if your app in running in Foreground or Background
-
Why you should use StringBuilder instead of StringBuffer in Android for better performance?
StringBuffer StringBuffer is mutable means one can change the value of the object . The object created through StringBuffer is stored in the heap. StringBuffer has the same methods as the StringBuilder , but each method in StringBuffer is synchronized […]
-
Using Otto Event Bus to Communicate b/w Activity and Fragment.
Using Otto Event Bus to Communicate b/w Activity and Fragment. Otto Event Bus is an Android Library that helps developers to communicate between Android Activity and Fragment and vice-versa. Lets see a simple implementation of this. Here I will pass […]
-
Implementing Downloadable fonts in Android – Kotlin.
Here is a simple example in which we will download a font from google and set it to our textview. View the Demo here Layout Here is our layout. The Edittext is a autocomplete textview where we will load the […]
-
How to BackUp user’s data programatically in Android?
Android’s Backup service allows you to persist the data in a Google cloud storage. Android does this with the help of a BackUpAgent in the SDK. If we want to backup the data, then extend the BackupAgent. Lets see how […]
-
Path from URI returning Null when selecting from Photos or Gallery in Android – Solved
For API above 19 For API from 11 to 18 For API below 11 Check this post to show the image selected from gallery in an imageview.
-
Store a Class object in Android Preferences or Store Non-Primitive types in Android Shared Preferences
We all know that Android only allows primitives types like int, float to be stored in preferences. But we can change this with the help of GSON. If you want to know more about GSON, you can refer my post […]
-
How to start With Kotlin?
Life is good and everything will be ok, Kotlin is here… In this article we will check how we can start with Kotlin for Android. Make sure you won’t overwrite your old Android Studio when you install the new version. […]
-
How to add Deeplinks in your Android Application?
What are Deep Links? Let’s understand this with the help of a situation. If you happened to click a link on a webpage and suddenly it opens an application inside you phone or opens a dialog asking you to choose […]
-
Useful Android Studio Plugins
Here are some plugins that are really handy for developers to speed up their development. 1. ADBWIFI This plugin helps you to debug your app over Wi-Fi. Check out my previous blog post on how to do this without any […]
-
Steps to Speed Up/Optimize Android Studio Gradle Build Process.
Even with good hardware configuration for the system, we often end up with slow gradle build process in Android Studio. So here I will discuss some steps to Speed up Android Gradle build. 1. Stay Up to Date Make sure […]
-
Get Battery Percentage in Android – Different Methods
We will see the different ways to get the battery percentage in Android. Method 1 Register a Broadcast Receiver Receive like this Method 2 Method 3 Note : Make sure you unregister the receiver when you don’t need.
-
How to Debug/Run Android application in Android Studio Wirelessly using Wifi.
Steps Enable usb debugging and Connect the device to dev system with USB cable. Type “adb tcpip 5555” in Terminal/Command prompt. (Here we are opening a port in device to connect from development system.) Disconnect the phone and check the […]