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

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