Are you still struggling with writing code for complex app navigation flow using Fragment transactions, Fragment Manager, back stack etc? Then Android Navigation Components is one stop solution to resolve this problem. This Jetpack library is being vastly used by developers community across the globe and they are finding it very
How to Develop a Secure Android App
In order to preserve user trust and maintain data integrity, developing secure mobile application is one of the major challenge for most of the mobile app developers. This article will take you through some of the best practices that should be followed while building Android app to avoid security vulnerabilities. 1.
Visitor Design Pattern
A Behavioral Design pattern Visitor design pattern is a way of separating an operational logic or algorithm from an object structure on which it operates. Visitor lets you define new operations to existing object structures without modifying the structures. It provides good use of the Open/Closed principle as we won’t modify the code, but we’ll still
Bridge Design Pattern
A Structural Design pattern Let’s start with the concrete definition, directly from the GoF book, Design Patterns. “Decouples an abstraction from its implementation so that the two can vary independently.” It states bridge pattern decouples the abstract elements of a class from its implementation by providing a bridge structure between them. Both types of
Android Data binding
Linking UI layer with Data Model-Part -1 The Data Binding — Support library that facilitate you to bind layout’s UI components to data models directly in the layout itself rather than programmatically. It means : How does it help ? 1. Reduce boilerplate code in java files. 2.
Decorator Design Pattern
Decorator pattern is used to add additional responsibility/ functionality to existing behaviour of an object without altering its original structure. This pattern creates a decorator class which is wrapper to the existing class and provides additional functionality keeping class methods signature intact. The decorator pattern uses composition providing a flexible alternative to
All about Memory Leaks in Android
When your code allocates memory to an object, but never de-allocates it. What is memory Leak in Android ? Whenever an object(A) which is not required anymore is being referenced by some other object(B) which is currently in use, would make garbage collector to consider the object(A) as an useful object . Hence GC will
Java Design Principles
SOLID Principles SOLID is an acronym stands for five important design principles in Object Oriented Programming. S: Single Responsibility Principle O: Open-Closed Principle L: Liskov Substitution Principle I: Interface Segregation Principle D: Dependency Inversion Principle The SOLID design principles were introduced by Robert C. Martin and are some of the best-known design principles in object-oriented