Android Design Patterns: The Singleton Pattern

What Is the Singleton Pattern? The Singleton Pattern is a software design pattern that guarantees a class has one instance only and a global point of access to it is provided by that class. Anytime multiple classes or clients request for that class, they get the same instance of the class. This Singleton class may

SHARE ON

Android O: Phone Number Verification With SMS Tokens

In this tutorial, you’ll learn about the cool new SMS token feature in Android O. You’ll learn how to generate an app-specific token that will fire up a pending intent when the device first receives a message containing that token so as to verify the phone number. Kindly note that as of this writing, the

SHARE ON

Android Design Patterns: The Observer Pattern

What Is the Observer Pattern? The Observer Pattern is a software design pattern that establishes a one-to-many dependency between objects. Anytime the state of one of the objects (the “subject” or “observable”) changes, all of the other objects (“observers”) that depend on it are notified. Let’s use the example of users that have subscribed to receive offers from Envato

SHARE ON

Ensure High-Quality Android Code With Static Analysis Tools

In today’s tutorial, we’ll learn about how to ensure high-quality Android code in our projects using some static code analysis tools for Java. We’ll look at Checkstyle, FindBugs, PMD, and Android Studio Lint—all of them free and open source! What Are Static Code Analysis Tools? These are tools that parse and analyse your source code

SHARE ON

Android O: How to Use Notification Channels

Google has launched the first developer preview of the next Android version, currently code-named Android O (Oreo maybe?). Some exciting features were released, and one of them is Notification Channels. In this tutorial, we’ll explore this feature and build a simple app that demonstrates the functionalities it provides. What Are Notification Channels? Notification channels enable us app developers to

SHARE ON

Serverless Apps With Firebase Cloud Functions

Firebase’s goal is to help developers build better apps and grow them into successful businesses. By taking care of your app back-end or infrastructure, Firebase lets you focus on solving problems for your users. One of the new exciting features announced at the Google Cloud Next ’17 Conference this March for Firebase was Cloud Functions. In this tutorial,

SHARE ON

Code an Image Gallery Android App With Glide

1. What Is Glide? Glide is a popular open-source Android library for loading images, videos, and animated GIFs. With Glide, you can load and display media from many different sources, such as remote servers or the local file system. By default, Glide uses a custom implementation of HttpURLConnection to load images over the internet. However, Glide also provides plugins

SHARE ON

Crash Reporting With Crashlytics

In Android, there is a high probability of your app crashing even after you have manually and automatically tested it. This can be due to factors such as incompatibility with different API levels, screen sizes, phone memory, hardware sensor availability, and vendors’ customization to suit their individual devices. Crashlytics will help you diagnose these problems.

SHARE ON