A fragment in the android framework

Introduction A fragment is a modular part of an activity, which has its own life cycle, receives its own input events, you can add or remove it while the activity is running. A fragment unifies the View and logic so that it can be easily reused within one or more different activities. There can be … Read more

Creating a custom listener in Android (listener pattern)

Introduction “Listener pattern” is one of the most commonly used patterns used in application development. The working principle is based on the fact that in one class we define an event and the moment when the execution of the event starts (“trigger event”), while in another class we define an object (so-called listener object) that … Read more

An introduction to asynchronous operations and Android multithreading

What is Thread and multithreading? Thread is a series of instructions within a program that can be executed independently of other code. If the computer has multiple processors and an operating system that supports the so-called multithreading, it allows programmers to design programs whose threads can be executed simultaneously. Thread mechanisms “Looper” and “MessageQueue” are … Read more

Activity within the android operating system

What is android activity? Android applications are a collection of tasks, where each task has its own functionality. These functionalities can be divided into four Android components: Functionality Android class Example User interaction Activity Entering a note, playing a computer game A background process that runs for a long time even when the user is … Read more