diff --git a/src/data/roadmaps/android/content/100-pick-a-language/100-kotlin.md b/src/data/roadmaps/android/content/100-pick-a-language/100-kotlin.md index a587205fd..272325987 100644 --- a/src/data/roadmaps/android/content/100-pick-a-language/100-kotlin.md +++ b/src/data/roadmaps/android/content/100-pick-a-language/100-kotlin.md @@ -1 +1,3 @@ -# Kotlin \ No newline at end of file +# Kotlin + +`Kotlin` is a cross-platform, statically typed general-purpose programming language with type inference. Developed by JetBrains, the makers of the world’s leading IDEs, Kotlin has a syntax, which is more expressive and concise. This allows for more readable and maintainable code. It is fully interoperable with Java and comes with no limitations. It can be used almost everywhere Java is used today, for server-side development, Android apps, and much more. Kotlin introduces several improvements for programmers over Java, which makes it a preferred choice for many developers. With more concise code base and modern programming concept support - it's certainly a future of Android app development. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/100-pick-a-language/101-java.md b/src/data/roadmaps/android/content/100-pick-a-language/101-java.md index 526e9b119..3fc193443 100644 --- a/src/data/roadmaps/android/content/100-pick-a-language/101-java.md +++ b/src/data/roadmaps/android/content/100-pick-a-language/101-java.md @@ -1 +1,3 @@ -# Java \ No newline at end of file +# Java + +Java is a popular programming language used for Android development due to its robustness and ease of use. Its object-oriented structure allows developers to create modular programs and reusable code. The language was built with the philosophy of "write once, run anywhere" (WORA), meaning compiled Java code can run on all platforms without the need for recompilation. Android’s API and core libraries are primarily written in Java, therefore understanding Java is fundamental in creating diverse and powerful Android apps. Java is a statically-typed language, which can be beneficial for detecting errors at compile-time rather than at runtime. Oracle, who owns Java, provides comprehensive documentation and support for the language. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/100-pick-a-language/index.md b/src/data/roadmaps/android/content/100-pick-a-language/index.md index 3bc24167b..d4aa110f4 100644 --- a/src/data/roadmaps/android/content/100-pick-a-language/index.md +++ b/src/data/roadmaps/android/content/100-pick-a-language/index.md @@ -1 +1,3 @@ -# Pick a language \ No newline at end of file +# Pick a Language + +When developing for Android, one crucial step is picking a programming language to use. There are multiple languages you can choose from, but the three most popular ones are Java, Kotlin, and C++. Java is the original language used for Android development and is widely used, making it a good choice for beginners due to the wealth of resources and developer communities. Kotlin is a newer option that is fully supported by Google and Android Studio, and addressing many of the drawbacks of Java which makes it a popular choice for many developers. Lastly, C++ can be used in Android development through the Android Native Development Kit (NDK), though it comes with more complexities and is usually not recommended for beginners. Your selection might depend on your existing familiarity with these languages, the complexity and specific requirements of your project, and the resources or libraries you wish to use. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/101-the-fundamentals/100-development-ide.md b/src/data/roadmaps/android/content/101-the-fundamentals/100-development-ide.md index f2395a516..7216eb3f9 100644 --- a/src/data/roadmaps/android/content/101-the-fundamentals/100-development-ide.md +++ b/src/data/roadmaps/android/content/101-the-fundamentals/100-development-ide.md @@ -1 +1,3 @@ -# Development ide \ No newline at end of file +# Development IDE + +"Development IDE" refers to Development Integrated Development Environment that is vital for Android App development. For Android, the primary IDE is **Android Studio**. This official IDE from Google includes everything you need to build an Android app, such as a code editor, code analysis tools, emulators for all of Android's supported OS versions and hardware configurations, and more. Other popular IDEs include **Eclipse** (with an Android Developer Tools plugin), **NetBeans**, and **IntelliJ IDEA**. Each of these IDEs tends to have its own set of specialized features, but all are designed to provide the tools and services needed for Android development. The choice of IDE often depends on the specific needs and preferences of the developer or development team. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/101-the-fundamentals/101-basics-of-kotlin.md b/src/data/roadmaps/android/content/101-the-fundamentals/101-basics-of-kotlin.md index 02acb72c8..4f9f08aa1 100644 --- a/src/data/roadmaps/android/content/101-the-fundamentals/101-basics-of-kotlin.md +++ b/src/data/roadmaps/android/content/101-the-fundamentals/101-basics-of-kotlin.md @@ -1 +1,3 @@ -# Basics of kotlin \ No newline at end of file +# Basics of Kotlin + +Kotlin is a statically-typed programming language that runs on the Java Virtual Machine (JVM) and can be used to develop all types of Android apps. It is Google's preferred language for Android app development. Kotlin's syntax is more concise than Java, which means less code to write and read, and fewer opportunities for errors. It provides several high-level features like lambdas, coroutines and higher order functions that help making the code more clean and understandable. Key basics of Kotlin include control flow statements (if, when, for, while), variables (mutable and non-mutable), null safety, classes and objects, inheritance, interfaces, and exception handling. While learning Kotlin, experience with Java will certainly be helpful, but it's not a prerequisite. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/101-the-fundamentals/102-basics-of-oop.md b/src/data/roadmaps/android/content/101-the-fundamentals/102-basics-of-oop.md index 8eea02a8c..c725b8190 100644 --- a/src/data/roadmaps/android/content/101-the-fundamentals/102-basics-of-oop.md +++ b/src/data/roadmaps/android/content/101-the-fundamentals/102-basics-of-oop.md @@ -1 +1,3 @@ -# Basics of oop \ No newline at end of file +# Basics of OOP + +In Android development, understanding the `Basics of Object-Oriented Programming (OOP)` is crucial. OOP is a programming paradigm that uses "Objects" - entities that contain both data and functions that manipulate the data. Key concepts include `Classes`, which are blueprints from which objects are created; `Objects`, instances of a class; `Inheritance`, where one class acquires properties from another; `Polymorphism`, the ability of an object to take many forms; `Abstraction`, showing only necessary details and hiding implementation from the user; and `Encapsulation`, the concept of wrapping data and the methods that work on data within one unit. By understanding these fundamentals, you can create more efficient and effective Android apps. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/101-the-fundamentals/103-datastructures-and-algorithms.md b/src/data/roadmaps/android/content/101-the-fundamentals/103-datastructures-and-algorithms.md index 5b251c85d..84fb30122 100644 --- a/src/data/roadmaps/android/content/101-the-fundamentals/103-datastructures-and-algorithms.md +++ b/src/data/roadmaps/android/content/101-the-fundamentals/103-datastructures-and-algorithms.md @@ -1 +1,5 @@ -# Datastructures and algorithms \ No newline at end of file +# DataStructures and Algorithms + +In Android, **data structures** are primarily used to collect, organize and perform operations on the stored data more effectively. They are essential for designing advanced-level Android applications. Examples include Array, Linked List, Stack, Queue, Hash Map, and Tree. + +Meanwhile, **algorithms** are a sequence of instructions or rules for performing a particular task. In Android, algorithms can be used for data searching, sorting, or performing complex business logic. Some commonly used algorithms are Binary Search, Bubble Sort, Selection Sort, etc. A deep understanding of data structures and algorithms is crucial in optimizing the performance and the memory consumption of the Android applications. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/101-the-fundamentals/104-using-gradle.md b/src/data/roadmaps/android/content/101-the-fundamentals/104-using-gradle.md index 2d73d3857..f486db42f 100644 --- a/src/data/roadmaps/android/content/101-the-fundamentals/104-using-gradle.md +++ b/src/data/roadmaps/android/content/101-the-fundamentals/104-using-gradle.md @@ -1 +1,3 @@ -# Using gradle \ No newline at end of file +# What is and how to use Gradle? + +**Using Gradle**: Gradle is a powerful build system used in Android development that allows you to define your project and dependencies, and distinguish between different build types and flavors. Gradle uses a domain-specific language (DSL) which gives developers almost complete control over the build process. When you trigger a build in Android Studio, Gradle is the tool working behind the scenes to compile and package your app. It looks at the dependencies you declared in your build.gradle files and creates a build script accordingly. Using Gradle in android development requires continuous editing of the build.gradle files to manage app dependencies, build variants, signing configurations and other essential aspects related to building your app. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/101-the-fundamentals/105-hello-world-app.md b/src/data/roadmaps/android/content/101-the-fundamentals/105-hello-world-app.md index 88ac8227b..35a2fc7da 100644 --- a/src/data/roadmaps/android/content/101-the-fundamentals/105-hello-world-app.md +++ b/src/data/roadmaps/android/content/101-the-fundamentals/105-hello-world-app.md @@ -1 +1,3 @@ -# Hello world app \ No newline at end of file +# Create a basic Hello World App + +The "Hello World" app is a simple project that you can build when you're getting started with Android development. It's often the first program that beginners learn to build in a new system. It's usually considered the simplest form of program that displays a message to the user - "Hello, World!" In Android, this involves creating a new project from the Android Studio and setting up the main activity. The main activity file is primarily written in Java or Kotlin where you can code for the display message, while the layout design view can be created in the XML file. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/101-the-fundamentals/index.md b/src/data/roadmaps/android/content/101-the-fundamentals/index.md index 2ab90a31c..55c77fe8d 100644 --- a/src/data/roadmaps/android/content/101-the-fundamentals/index.md +++ b/src/data/roadmaps/android/content/101-the-fundamentals/index.md @@ -1 +1,3 @@ -# The fundamentals \ No newline at end of file +# The Fundamentals + +"The Fundamentals" of Android primarily concentrate on 5 components; Activities, Services, Broadcast Receivers, Content Providers, and Intents. **Activities** are essentially what you see on your screen; each screen in an app is a separate activity. **Services** run in the background to perform long-running operations or to perform work for remote processes. They do not provide a user interface. **Broadcast Receivers** respond to broadcast messages from other applications or from the system itself. These messages are often in the form of Intents. **Content Providers** manage a shared set of app data that other apps can query or modify, through a structured interface. Finally, **Intents** are messaging objects which facilitate the communication between the aforementioned components. Understanding these five core concepts is key to mastering Android fundamentals. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/102-version-control/100-git.md b/src/data/roadmaps/android/content/102-version-control/100-git.md index 65f57e71e..608faf32a 100644 --- a/src/data/roadmaps/android/content/102-version-control/100-git.md +++ b/src/data/roadmaps/android/content/102-version-control/100-git.md @@ -1 +1,3 @@ -# Git \ No newline at end of file +# Git + +`Git` is a highly efficient and flexible distributed version control system that was created by Linus Torvalds, the creator of Linux. It allows multiple developers to work on a project concurrently, providing tools for non-linear development and tracking changes in any set of files. Git has a local repository with a complete history and version-tracking capabilities, allowing offline operations, unlike SVN. It ensures data integrity and provides strong support for non-linear development with features such as branching and merging. Yet, Git has a high learning curve and can be complex for beginners to understand the command line interface. Furthermore, Git also allows you to create `tags` to reference certain points in your history for milestone or version releases. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/102-version-control/101-github.md b/src/data/roadmaps/android/content/102-version-control/101-github.md index 1d347d3e4..088787c4a 100644 --- a/src/data/roadmaps/android/content/102-version-control/101-github.md +++ b/src/data/roadmaps/android/content/102-version-control/101-github.md @@ -1 +1,4 @@ -# Github \ No newline at end of file +# GitHub + +**GitHub** is a cloud-based hosting service for managing software version control using Git. It provides a platform for enabling multiple developers to work together on the same project at the same time. With GitHub, codes can be stored publicly, allowing for collaboration with other developers or privately for individual projects. Key features of GitHub include code sharing, task management, and version control, among others. GitHub also offers functionalities such as bug tracking, feature requests, and task management for the project. +For Android development, it supports Gradle-based android projects, plugins for Android Studio and JetBrains IntelliJ IDEA, making version control operations more user-friendly. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/102-version-control/102-bitbucket.md b/src/data/roadmaps/android/content/102-version-control/102-bitbucket.md index 9c781a3b3..b16ec0eda 100644 --- a/src/data/roadmaps/android/content/102-version-control/102-bitbucket.md +++ b/src/data/roadmaps/android/content/102-version-control/102-bitbucket.md @@ -1 +1,3 @@ -# Bitbucket \ No newline at end of file +# BitBucket + +Bitbucket is a web-based hosting service that is owned by Atlassian. Bitbucket uses either Mercurial or Git revision control systems, allowing users to manage and maintain their code. This platform is mainly used for code and code review. Bitbucket provides both commercial plans and free accounts. It offers free accounts with an unlimited number of private repositories (which can have up to five users in the case of free accounts) as of September 2010. It originally offered only Mercurial support. Bitbucket integrates with other Atlassian software like JIRA, HipChat, Confluence and Bamboo. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/102-version-control/103-gitlab.md b/src/data/roadmaps/android/content/102-version-control/103-gitlab.md index 70157a4e6..26418bfaf 100644 --- a/src/data/roadmaps/android/content/102-version-control/103-gitlab.md +++ b/src/data/roadmaps/android/content/102-version-control/103-gitlab.md @@ -1 +1,3 @@ -# Gitlab \ No newline at end of file +# GitLab + +`Gitlab` is a web-based DevOps lifecycle tool which provides a Git-repository manager, along with continuous integration and deployment pipeline features, using an open-source license, developed by GitLab Inc. Users can manage and create their software projects and repositories, and collaborate on these projects with other members. `Gitlab` also allows users to view analytics and open issues of their project. It stands next to other version control tools like `GitHub` and `Bitbucket`, but comes with its own set of additional features and nuances. For Android development, `Gitlab` can be particularly useful owing to its continuous integration and deployment system which can automate large parts of the app testing and deployment. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/102-version-control/index.md b/src/data/roadmaps/android/content/102-version-control/index.md index 27f303ff0..ba41c05b4 100644 --- a/src/data/roadmaps/android/content/102-version-control/index.md +++ b/src/data/roadmaps/android/content/102-version-control/index.md @@ -1 +1,3 @@ -# Version control \ No newline at end of file +# Version Control Systems + +_Version Control_ is a system that records changes to a file or set of files over time so that you can recall specific versions later. An essential tool for software development, it helps to track changes, enhance collaboration, and manage different versions of a project. Two common types of version control systems are Centralized Version Control System (CVCS) and Distributed Version Control System (DVCS). CVCS uses a central server to store all versions of a project, with users getting snapshots from that server. Examples include SVN and Perforce. On the other hand, DVCS allows multiple developers to work on a single project simultaneously. Each user has a complete backup of all versions of the work. Examples include Git and Mercurial. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/103-app-components/100-activity/100-activity-lifecycle.md b/src/data/roadmaps/android/content/103-app-components/100-activity/100-activity-lifecycle.md index 2ede4fcc1..db33dbc0d 100644 --- a/src/data/roadmaps/android/content/103-app-components/100-activity/100-activity-lifecycle.md +++ b/src/data/roadmaps/android/content/103-app-components/100-activity/100-activity-lifecycle.md @@ -1 +1,3 @@ -# Activity lifecycle \ No newline at end of file +# Activity Lifecycle + +The **Activity Lifecycle** in Android represents a series of states or events that an activity can go through from its creation to its destruction. The primary states or events are `onCreate()`, `onStart()`, `onResume()`, `onPause()`, `onStop()`, `onDestroy()`, and `onRestart()`. The method `onCreate()` is called when the activity is first created, followed by `onStart()` when the activity becomes visible to the user. The `onResume()` method executes when the user starts interacting with the application. `onPause()` and `onStop()` methods are invoked when the application is no longer in the foreground or visible to the user. The `onDestroy()` method is used when the activity is being completely removed from the memory. The `onRestart()` method is called after the system stops the activity and is about to start it again. The proper handling of these states ensures the efficient use of resources and a smooth user experience. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/103-app-components/100-activity/101-state-changes.md b/src/data/roadmaps/android/content/103-app-components/100-activity/101-state-changes.md index 70381c379..4a2dcfd40 100644 --- a/src/data/roadmaps/android/content/103-app-components/100-activity/101-state-changes.md +++ b/src/data/roadmaps/android/content/103-app-components/100-activity/101-state-changes.md @@ -1 +1,3 @@ -# State changes \ No newline at end of file +# State Changes + +In Android, an "Activity" is a crucial component that represents a single screen with a user interface. One or more active activities make up an Application. These activities can go through different states in their lifecycle, often due to user interaction or system interruption. The primary states of an Activity include `Created`, `Started`, `Resumed`, `Paused`, `Stopped`, `Restarted`, and `Destroyed`. The "Created" state occurs when an activity instance is being created. The "Started" state is when the activity is visible to the user, while "Resumed" is when the activity is interacting with the user. An activity is "Paused" when it loses focus but is partly visible, "Stopped" when it's not visible, "Restarted" when the activity is about to be started, and "Destroyed" when the activity is finished or the system is temporarily destroying it. diff --git a/src/data/roadmaps/android/content/103-app-components/100-activity/102-tasks-backstack.md b/src/data/roadmaps/android/content/103-app-components/100-activity/102-tasks-backstack.md index f86b4fe57..6793b8a81 100644 --- a/src/data/roadmaps/android/content/103-app-components/100-activity/102-tasks-backstack.md +++ b/src/data/roadmaps/android/content/103-app-components/100-activity/102-tasks-backstack.md @@ -1 +1,3 @@ -# Tasks backstack \ No newline at end of file +# Tasks and Backstack + +The **tasks backstack** in Android refers to the way Android manages and arranges tasks in a stack-like structure. Every task has a stack of activities, which is referred to as the task's back stack. The activities are placed in the order they are opened. When a new activity is started, it is placed at the top of the stack and becomes the running activity, while the previous activity is paused and put into the back stack. When you press the back button, the current activity is destroyed and the activity at the top of the back stack becomes active again. Android defines how to navigate between tasks and activities using this back stack concept. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/103-app-components/100-activity/index.md b/src/data/roadmaps/android/content/103-app-components/100-activity/index.md index d4741ebd9..d65af078a 100644 --- a/src/data/roadmaps/android/content/103-app-components/100-activity/index.md +++ b/src/data/roadmaps/android/content/103-app-components/100-activity/index.md @@ -1 +1,3 @@ -# Activity \ No newline at end of file +# Activity + +`Activity` in Android is a crucial component that represents a single screen with a user interface. It is just like a window in a desktop application. Android apps are typically made up of one or more activities, each having its interface which allows user interaction. When an app is launched, an instance of `Activity` is created, starting the lifecycle of that app. Every activity has its own lifecycle (create, start, resume, pause, stop, destroy) that keeps the state of a user's progress, and Android manages these states automatically. Activities can also have `Intent`, which allows them to interact with other components, such as starting another activity or getting a result from that activity. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/103-app-components/101-services.md b/src/data/roadmaps/android/content/103-app-components/101-services.md index a02b5d886..1facf8822 100644 --- a/src/data/roadmaps/android/content/103-app-components/101-services.md +++ b/src/data/roadmaps/android/content/103-app-components/101-services.md @@ -1 +1,3 @@ -# Services \ No newline at end of file +# Services + +**Services**: A service in Android is an app component that performs operations in the background without a user interface. It can be started by an application component, like an activity, and it will continue to run in the background even if the user switches to another application. There are two types of services in Android, namely, `Started Service` and `Bound Service`. A `Started Service` is used to perform a single operation, such as downloading a large file. On the other hand, a `Bound Service` offers a client-server interface that allows components to interact with the service, send requests, receive results, and even perform interprocess communication (IPC). \ No newline at end of file diff --git a/src/data/roadmaps/android/content/103-app-components/102-content-provider.md b/src/data/roadmaps/android/content/103-app-components/102-content-provider.md index 468d97fd3..6b6e31539 100644 --- a/src/data/roadmaps/android/content/103-app-components/102-content-provider.md +++ b/src/data/roadmaps/android/content/103-app-components/102-content-provider.md @@ -1 +1,3 @@ -# Content provider \ No newline at end of file +# Content Provider + +A **Content Provider** in Android is a key component that allows applications to securely share data with other applications. They act as a layer between databases and applications to enhance data security. Content providers manage access to a structured set of data by handling data transactions, implementing data security, and maintaining isolation between applications. They provide an abstracted interface which is used to access data, while the underlying storage method (Like SQLite database, web, or any other method) remains hidden. This mechanism aids in retrieving data from a non-relational source in a structured way. They're used primarily when data needs to be shared between multiple applications, not just within a single application. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/103-app-components/103-broadcast-receiver.md b/src/data/roadmaps/android/content/103-app-components/103-broadcast-receiver.md index 2975f01e8..d37d278e3 100644 --- a/src/data/roadmaps/android/content/103-app-components/103-broadcast-receiver.md +++ b/src/data/roadmaps/android/content/103-app-components/103-broadcast-receiver.md @@ -1 +1,3 @@ -# Broadcast receiver \ No newline at end of file +# Broadcast Receiver + +**Broadcast Receivers** in Android are components that respond to system-wide broadcast announcements. They can be registered to respond to a specific type of broadcasts or implement a user-defined broadcast. While you can initiate a broadcast from your app, they are generally used for receiving system notifications or communicating with other applications. However, keep in mind that they cannot display a user interface, but they can start activities if necessary, which do have a user interface. A `BroadcastReceiver` class must override the `onReceive()` method where each message is received as an `Intent` object parameter. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/103-app-components/104-intent/100-implicit-intents.md b/src/data/roadmaps/android/content/103-app-components/104-intent/100-implicit-intents.md index 3468393d9..61f20ab62 100644 --- a/src/data/roadmaps/android/content/103-app-components/104-intent/100-implicit-intents.md +++ b/src/data/roadmaps/android/content/103-app-components/104-intent/100-implicit-intents.md @@ -1 +1,3 @@ -# Implicit intents \ No newline at end of file +# Implicit Intents + +In Android development, **Implicit Intents** do not specify the target component explicitly like Explicit Intents. Instead, they allow the system to find a suitable component matching the Intent description to handle the request. The system will find an activity that can handle this intent by comparing the `` section in the `AndroidManifest.xml` of all apps installed on the device against the Implicit Intent. An ideal example of an implicit intent is opening a URL. You do not need to know the specific activity that can handle this request, you just declare an intent to view a web page and Android system will select the suitable app that can open the URL. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/103-app-components/104-intent/101-explicit-intents.md b/src/data/roadmaps/android/content/103-app-components/104-intent/101-explicit-intents.md index 871367ba2..9554ef009 100644 --- a/src/data/roadmaps/android/content/103-app-components/104-intent/101-explicit-intents.md +++ b/src/data/roadmaps/android/content/103-app-components/104-intent/101-explicit-intents.md @@ -1 +1,3 @@ -# Explicit intents \ No newline at end of file +# Explicit Intents + +**Explicit Intents** are primarily used within an application's own boundaries. In explicit intents you specify the component that needs to be responded to the intent. Therefore, the target component must be specified by calling methods such as `setComponent(ComponentName)`, `setClass(Context, Class)`, or `setClassName(String, String)`. This means that explicit intents are typically used for launching activities, broadcasting messages, starting services within the app. Explicit intents are not resolved by the system but are passed to the component identified in the intent. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/103-app-components/104-intent/102-intent-filters.md b/src/data/roadmaps/android/content/103-app-components/104-intent/102-intent-filters.md index 872824d7a..35d87e03c 100644 --- a/src/data/roadmaps/android/content/103-app-components/104-intent/102-intent-filters.md +++ b/src/data/roadmaps/android/content/103-app-components/104-intent/102-intent-filters.md @@ -1 +1,3 @@ -# Intent filters \ No newline at end of file +# Intent Filters + +`Intent Filters` in Android are essential components of the Android system where you can declare the capabilities of your activities, services, and broadcast receivers. An intent filter is an expression found in your app's manifest file, defined in the XML element. Android uses these filters to determine the appropriate components for incoming intents, which can be either explicit or implicit. Your app's ability to respond to intents depends on the filters you define. The filters are set of conditions comprised of `action`, `category`, and `data` which your activity or service is able to perform. If the incoming `Intent` matches with defined `Intent Filters`, Android system will permit that `Intent` to your Component (Activity, Service, or Broadcast Receiver). \ No newline at end of file diff --git a/src/data/roadmaps/android/content/103-app-components/104-intent/index.md b/src/data/roadmaps/android/content/103-app-components/104-intent/index.md index a14effa83..d64c6cc0b 100644 --- a/src/data/roadmaps/android/content/103-app-components/104-intent/index.md +++ b/src/data/roadmaps/android/content/103-app-components/104-intent/index.md @@ -1 +1,3 @@ -# Intent \ No newline at end of file +# Intent + +"Intent" in Android is a software mechanism used for late runtime binding between components, such as activities, content providers, and services. It is essentially a passive data structure holding an abstract description of an operation that the Android system is requested to perform. The Intent can be explicit, in which you specify the component to start or implicit, where you declare a general action to perform, allowing a component from another app to handle it. Implicit intents are often used to request another app's functionality, such as showing a user a location on a map or taking a photo. "Intent Filters" are then used by the components to advertise their capabilities to handle different types of intents. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/103-app-components/index.md b/src/data/roadmaps/android/content/103-app-components/index.md index 98af8c2fe..dfac9e5cd 100644 --- a/src/data/roadmaps/android/content/103-app-components/index.md +++ b/src/data/roadmaps/android/content/103-app-components/index.md @@ -1 +1,15 @@ -# App components \ No newline at end of file +# App Components + +Android apps are primarily made up of five different types of components: + +1. **Activities**: These are individual screens that a user can interact with. Any UI action like touching a button or swiping a screen will usually take place within an activity. + +2. **Services**: Unlike activities, services run in the background and don't have a user interface. They’re used for repetitive or long running operations, like playing music or pulling in a feed of data from a server. + +3. **Broadcast Receivers**: These are event listeners. The Android operating system uses them to respond to system-wide events. + +4. **Content Providers**: They manage and share app data with other apps installed on the device. For security, data is not generally shared across apps. + +5. **Intents**: These serve as messages or commands to the Android system. They're used to signal to the Android system that certain events have occurred. + +Each app component is designed to serve different purposes and to have a well-defined lifecycle which defines how the component is created and destroyed. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/104-interface-and-navigation/100-jetpack-compose.md b/src/data/roadmaps/android/content/104-interface-and-navigation/100-jetpack-compose.md index f3218847a..14fe08483 100644 --- a/src/data/roadmaps/android/content/104-interface-and-navigation/100-jetpack-compose.md +++ b/src/data/roadmaps/android/content/104-interface-and-navigation/100-jetpack-compose.md @@ -1 +1,3 @@ -# Jetpack compose \ No newline at end of file +# Jetpack Compose + +`Jetpack Compose` is a modern toolkit for building native Android UI. It simplifies and accelerates UI development on Android with less code, powerful tools, and intuitive Kotlin APIs. `Jetpack Compose` offers a declarative approach to designing UI, where you can simply describe what your UI should look like at any given point of your app’s state, and `Compose` takes care of updating the view hierarchy, making UI development more efficient. It also integrates well with existing Android apps, letting you adopt its benefits at your own pace. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/104-interface-and-navigation/101-app-shortcuts.md b/src/data/roadmaps/android/content/104-interface-and-navigation/101-app-shortcuts.md index 3b795b259..a1d74ca11 100644 --- a/src/data/roadmaps/android/content/104-interface-and-navigation/101-app-shortcuts.md +++ b/src/data/roadmaps/android/content/104-interface-and-navigation/101-app-shortcuts.md @@ -1 +1,7 @@ -# App shortcuts \ No newline at end of file +# App Shortcuts + +Sure, I can provide information about "app shortcuts" feature in Android. + +### App Shortcuts + +App shortcuts in Android are designed to provide quick and convenient routes to specific actions or functions within your app from the device home screen. To use them, long-press an app's icon and a pop-up menu will appear with the available shortcuts. Depending on the app, you might be able to send a message, make a booking, navigate home, or perform some other specific task without having to first open the app and navigate to the desired function. These shortcuts can also be moved and placed individually on the home screen for even faster access. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/104-interface-and-navigation/102-navigation-components.md b/src/data/roadmaps/android/content/104-interface-and-navigation/102-navigation-components.md index 192460d9b..5ac35cec4 100644 --- a/src/data/roadmaps/android/content/104-interface-and-navigation/102-navigation-components.md +++ b/src/data/roadmaps/android/content/104-interface-and-navigation/102-navigation-components.md @@ -1 +1,3 @@ -# Navigation components \ No newline at end of file +# Navigation Components + +The **Navigation Components** are part of Android Jetpack and are designed to simplify the implementation of navigation in your Android app. These components help you follow best practices, handle deep linking, and provide a consistent user experience across deep and conditional navigation. They also automate many common tasks, such as handling Up and Back actions correctly across many different types of devices. The Navigation component consists of three key parts which are Navigation graph, NavHost, and NavController. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/104-interface-and-navigation/elements/100-text-view.md b/src/data/roadmaps/android/content/104-interface-and-navigation/elements/100-text-view.md index 39bf59d37..43515e86c 100644 --- a/src/data/roadmaps/android/content/104-interface-and-navigation/elements/100-text-view.md +++ b/src/data/roadmaps/android/content/104-interface-and-navigation/elements/100-text-view.md @@ -1 +1,3 @@ -# Text view \ No newline at end of file +# TextView + +`TextView` in Android is a UI (User Interface) element that allows you to display text to the user. You can set the text to be displayed by declaring it in XML or introducing it programmatically. This element supports various attributes such as `android:textAllCaps`, `android:textAppearance`, `android:textColor`, etc., to customize its appearance. Each `TextView` corresponds to an `android.widget.TextView` object. You can also react to user interaction events such as touch or click with the help of listeners (like `View.onClickListener` or `View.onTouchListener`). Manipulating with `TextView` is common when creating Android apps as they form the basic building block for user interface components. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/104-interface-and-navigation/elements/101-edit-text.md b/src/data/roadmaps/android/content/104-interface-and-navigation/elements/101-edit-text.md index f5c32d7a7..dd4f51dfd 100644 --- a/src/data/roadmaps/android/content/104-interface-and-navigation/elements/101-edit-text.md +++ b/src/data/roadmaps/android/content/104-interface-and-navigation/elements/101-edit-text.md @@ -1 +1,3 @@ -# Edit text \ No newline at end of file +# EditText + +`EditText` is a common element used in Android development. It's a fundamental component for accepting user input in simple form or dialog. It allows users to modify text within its bounding box, much like what a TextField does in more general programming languages. If you have used a form or a webpage that allows you to input text, it was probably created with an EditText or similar control. You can customize an `EditText` in various ways including size, color, initial text, and hint text. You can also listen for changes in the text in an EditText, apply filters, specify input types, and more. The `android:text` attribute lets you pre-fill the EditText with text, and `android:hint` provides hint text when the EditText is empty. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/104-interface-and-navigation/elements/102-buttons.md b/src/data/roadmaps/android/content/104-interface-and-navigation/elements/102-buttons.md index 26dfc1c81..410ea34b5 100644 --- a/src/data/roadmaps/android/content/104-interface-and-navigation/elements/102-buttons.md +++ b/src/data/roadmaps/android/content/104-interface-and-navigation/elements/102-buttons.md @@ -1 +1,3 @@ -# Buttons \ No newline at end of file +# Buttons + +Buttons in Android are user interactions that trigger certain programmable actions. They are part of the `View` class in Android, making them an essential part of user interfaces. Android provides different types of buttons such as `Button`, `ToggleButton`, `RadioButton`, `CheckBox`, `Switch`, `ImageButton`, and `FloatingActionButton`. Each of these serves a different purpose and provides varied interactivity options. Their behavior and appearance can be customized in terms of different properties such as text, ID, color, etc. They can be programmed in the XML layout files or dynamically in the Java/Kotlin code. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/104-interface-and-navigation/elements/103-image-view.md b/src/data/roadmaps/android/content/104-interface-and-navigation/elements/103-image-view.md index 1913b5f2e..969f18a50 100644 --- a/src/data/roadmaps/android/content/104-interface-and-navigation/elements/103-image-view.md +++ b/src/data/roadmaps/android/content/104-interface-and-navigation/elements/103-image-view.md @@ -1 +1,3 @@ -# Image view \ No newline at end of file +# ImageView + +An `ImageView` is a class used in Android for displaying an image file. It inherits from 'View' class and extends the ability of views to show images. Images can be loaded from various sources such as a resource file, drawable, or a URL, with varying scale types. This class also provides methods to manage the image scale type, define padding, set tint, and manipulate the color filter. It's important to note that `ImageView` should be used in moderation as it is resource-intensive and could degrade app performance if used excessively. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/104-interface-and-navigation/elements/104-list-view.md b/src/data/roadmaps/android/content/104-interface-and-navigation/elements/104-list-view.md index 55738d7a3..8b6a0e4d2 100644 --- a/src/data/roadmaps/android/content/104-interface-and-navigation/elements/104-list-view.md +++ b/src/data/roadmaps/android/content/104-interface-and-navigation/elements/104-list-view.md @@ -1 +1,3 @@ -# List view \ No newline at end of file +# ListView + +`ListView` in Android is a view which groups several items and displays them in vertical scrollable list. The list items are automatically inserted to the list using an `Adapter` that pulls content from a source such as an array or database query and converts each item result into a view that's placed into the list. It is widely used in android apps as it offers an easy way to display a list of data in an organized manner. Functions such as `setAdapter(Adapter)` to specify data source, `setOnItemClickListener(OnItemClickListener)` to listen for click events on items, and `setOnScrollListener(OnScrollListener)` to listen for scroll events, provide further control over the list behavior. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/104-interface-and-navigation/elements/105-tabs.md b/src/data/roadmaps/android/content/104-interface-and-navigation/elements/105-tabs.md index 8f62e7757..816629a2f 100644 --- a/src/data/roadmaps/android/content/104-interface-and-navigation/elements/105-tabs.md +++ b/src/data/roadmaps/android/content/104-interface-and-navigation/elements/105-tabs.md @@ -1 +1,3 @@ -# Tabs \ No newline at end of file +# Tabs + +Tabs are commonly used in Android for switching between different views within the same activity. Some instances may make use of a `TabLayout` located within a `ViewPager` to create swipeable tabs. Each tab is usually associated with a fragment. To create tabs in Android, you need to use the `TabLayout` component that is available in the Material Design library. A typical `TabLayout` contains multiple `TabItem`, each representing a tab in the interface. The `TabLayout` works with a `ViewPager` to provide a consistent swipeable interface. Users can approach tabs differently depending on whether they are coded for manual or automatic filling. Manual tab creation and addition require explicit defining of each tab and adding them to the `TabLayout`, while in automatic filling tabs are generated from the `PagerAdaptor`'s page title. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/104-interface-and-navigation/elements/106-fragments.md b/src/data/roadmaps/android/content/104-interface-and-navigation/elements/106-fragments.md index 81225f465..5e625e870 100644 --- a/src/data/roadmaps/android/content/104-interface-and-navigation/elements/106-fragments.md +++ b/src/data/roadmaps/android/content/104-interface-and-navigation/elements/106-fragments.md @@ -1 +1,3 @@ -# Fragments \ No newline at end of file +# Fragments + +In Android, **Fragments** represent a behavior or a part of the user interface in an Activity. They are modular sections of an activity, which are reusable in different activities. They contribute to making an application adaptive to different devices with varied screen sizes. A fragment has its own lifecycle, receives its own input events, and can be added or removed while the activity is running. While they exist within the context of an activity, they can also be used independently to encapsulate functionality for easier development and reuse. Multiple fragments can combine in a single activity to build a multi-pane UI. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/104-interface-and-navigation/elements/107-dialogs.md b/src/data/roadmaps/android/content/104-interface-and-navigation/elements/107-dialogs.md index 966c06283..7a523c11d 100644 --- a/src/data/roadmaps/android/content/104-interface-and-navigation/elements/107-dialogs.md +++ b/src/data/roadmaps/android/content/104-interface-and-navigation/elements/107-dialogs.md @@ -1 +1,5 @@ -# Dialogs \ No newline at end of file +# Dialogs + +Dialogs in Android are small windows that prompt users to make a decision or enter additional information. They don't fill the screen and are normally used for modal events that require users to take action before they can proceed. In Android, `Dialog` is actually an abstract class directly subclassed from `Object`. `AlertDialog` is the subclass that you will most commonly use, which contains a number of methods as compared to `Dialog` to support features like lists, checkboxes, radio buttons, and a custom layout design. They are typically used for user interactions such as warnings, notifications, and menus. + +To create a dialog, you must use the `Dialog` class or one of its subclasses, such as `DialogFragment` or `AlertDialog`. For a more detailed explanation on implementing dialogs in Android, you can refer to the official Android Developer's Guide. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/104-interface-and-navigation/elements/108-toast.md b/src/data/roadmaps/android/content/104-interface-and-navigation/elements/108-toast.md index 554825c82..33510b58a 100644 --- a/src/data/roadmaps/android/content/104-interface-and-navigation/elements/108-toast.md +++ b/src/data/roadmaps/android/content/104-interface-and-navigation/elements/108-toast.md @@ -1 +1,3 @@ -# Toast \ No newline at end of file +# Toast + +`Toast` in Android is a simple message that appears on the screen for a short period of time then disappears automatically. It is generally used to provide feedback to the user about an operation in a small popup without requiring any user interaction. This feedback could be an error message or simply information that a process completed successfully. You can configure the toast to appear anywhere on the screen and specify how long it stays up. In order to use a toast, you have to import the `android.widget.Toast` package and instantiate a Toast object. Here's an example of creating a simple toast: `Toast.makeText(context, text, duration).show()`, where context is your application context, text is the message to display, and duration is either `Toast.LENGTH_SHORT` or `Toast.LENGTH_LONG`. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/104-interface-and-navigation/elements/109-bottom-sheet.md b/src/data/roadmaps/android/content/104-interface-and-navigation/elements/109-bottom-sheet.md index ab7e24bb6..4387b5d22 100644 --- a/src/data/roadmaps/android/content/104-interface-and-navigation/elements/109-bottom-sheet.md +++ b/src/data/roadmaps/android/content/104-interface-and-navigation/elements/109-bottom-sheet.md @@ -1 +1,3 @@ -# Bottom sheet \ No newline at end of file +# Bottom Sheet + +The **Bottom Sheet** is a popular UI component within the Android development environment. This interface element acts like a drawer that slides up from the bottom of the screen to reveal more content or options. There are two types of bottom sheets in Android: "persistent" and "modal". The persistent bottom sheet shows in-app content that supplements the primary screen content, remaining visible even when the user interacts with the primary surface. On the other hand, the modal bottom sheet is a simple menu presenting a list of options, often used for sharing content, navigating, or for user-editable content. It can be dismissed by the user and does not remain visible when the user interacts with the primary surface. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/104-interface-and-navigation/elements/110-drawer.md b/src/data/roadmaps/android/content/104-interface-and-navigation/elements/110-drawer.md index ceef2fc71..144576651 100644 --- a/src/data/roadmaps/android/content/104-interface-and-navigation/elements/110-drawer.md +++ b/src/data/roadmaps/android/content/104-interface-and-navigation/elements/110-drawer.md @@ -1 +1,3 @@ -# Drawer \ No newline at end of file +# Drawer + +The `Drawer` in Android is a slide-out menu that enables users to navigate between different parts of an application. It is usually triggered by a hamburger icon in the app's top-left corner. The `Drawer` can contain a list of options, subheadings, and separators to articulate the app's structure. In Android, this component can be implemented using `DrawerLayout` and `NavigationView`. The `DrawerLayout` is the parent component and `NavigationView` is typically placed within the `DrawerLayout`. One key thing to note is that the `Drawer` should not be used as the only means of navigating through an application, according to Android's design guidelines. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/104-interface-and-navigation/elements/111-animations.md b/src/data/roadmaps/android/content/104-interface-and-navigation/elements/111-animations.md index 9786aeabf..21b969624 100644 --- a/src/data/roadmaps/android/content/104-interface-and-navigation/elements/111-animations.md +++ b/src/data/roadmaps/android/content/104-interface-and-navigation/elements/111-animations.md @@ -1 +1,5 @@ -# Animations \ No newline at end of file +# Animations + +In Android, animations are used to give a more visual, dynamic, and interactive aspect to a static user interface. Android offers four categories of animation APIs in order to create and manage the animations. These are: **Property Animation**: This allows modification of properties of an object over a given time period. **View Animation**: Consists of two subcategories i.e. Tween Animation (transition of a view from one state to another) and Frame Animation (displaying frames one after another). **Drawable Animation**: This is similar to a slideshow, showing one image after another. Lastly, **Layout Animation**: This is used to animate the layout itself when views are added or removed. + +You can utilize Android's built-in animations or fully customize your own to add unique transitions and movements in your applications. Every app can benefit from a touch of animation to create a more immersive and pleasant user experience. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/104-interface-and-navigation/index.md b/src/data/roadmaps/android/content/104-interface-and-navigation/index.md index 8c1df31de..7c3bae050 100644 --- a/src/data/roadmaps/android/content/104-interface-and-navigation/index.md +++ b/src/data/roadmaps/android/content/104-interface-and-navigation/index.md @@ -1 +1,3 @@ -# Interface and navigation \ No newline at end of file +# Interface and Navigation + +In Android development, the concepts of "Interface" and "Navigation" are crucial. The "Interface" often refers to the Graphical User Interface (GUI) that users interact with. This includes buttons, text fields, image views, scroll views and other UI elements that the users can interact with to perform certain tasks. Tools like XML and Material Designs are used for interface design in Android. Meanwhile, "Navigation" refers to the interactions that allow users to navigate across, into, and back out from the different pieces of content within the app, following a clear path, like a map. Android uses the Navigation Component, a suite of libraries, tools, and guidance on constructing in-app navigation. Understanding both these elements, Interface and Navigation, is fundamental to creating an intuitive and user-friendly Android application. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/104-interface-and-navigation/layouts/100-frame.md b/src/data/roadmaps/android/content/104-interface-and-navigation/layouts/100-frame.md index fa0a583f7..01bb9e0c5 100644 --- a/src/data/roadmaps/android/content/104-interface-and-navigation/layouts/100-frame.md +++ b/src/data/roadmaps/android/content/104-interface-and-navigation/layouts/100-frame.md @@ -1 +1,3 @@ -# Frame \ No newline at end of file +# Frame + +The `FrameLayout` in Android is a layout manager that pinpoints its children to the top left corner of the layout. This means that all children will be piled up on each other at the same top left corner, which might not be visually appealing. However, it can be useful in some specific designs, where you desire to overlay one view on top of another. Additionally, `FrameLayout` allows you to control the positioning of items in the frame by configuring the `gravity` property. However, bear in mind that this layout does not provide any visual structure – you may need to use `padding` or `margin` to create spaces between the elements in the frame. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/104-interface-and-navigation/layouts/101-linear.md b/src/data/roadmaps/android/content/104-interface-and-navigation/layouts/101-linear.md index 52d8c399b..0830259e3 100644 --- a/src/data/roadmaps/android/content/104-interface-and-navigation/layouts/101-linear.md +++ b/src/data/roadmaps/android/content/104-interface-and-navigation/layouts/101-linear.md @@ -1 +1,3 @@ -# Linear \ No newline at end of file +# Linear + +`Linear Layout` in Android is a layout where all elements are aligned in a linear fashion - either horizontally or vertically. Each element inside a `LinearLayout` takes up space according to its size. In a vertical layout, elements can occupy the full width and a certain height, whereas in a horizontal layout, elements can occupy the full height and a certain width. This is extremely useful if you want to align elements in a single direction. You provide the orientation of a `LinearLayout` using the `android:orientation` attribute. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/104-interface-and-navigation/layouts/102-relative.md b/src/data/roadmaps/android/content/104-interface-and-navigation/layouts/102-relative.md index 842ad8641..92d89bbef 100644 --- a/src/data/roadmaps/android/content/104-interface-and-navigation/layouts/102-relative.md +++ b/src/data/roadmaps/android/content/104-interface-and-navigation/layouts/102-relative.md @@ -1 +1,3 @@ -# Relative \ No newline at end of file +# Relative + +`RelativeLayout` in Android is a layout that positions views based on their relationship to each other or the parent. This means that you can set your views related to the position of siblings (other child views) or the parent. For example, you can place a button right to an ImageView, or at the bottom of a parent view. Android systems determine this order dynamically by examining each of the RelativeLayout parameters, such as `android:layout_below` or `android:layout_toRightOf`, and applying them according to the rules defined. This layout is useful when you're building a UI that needs to maintain relative positioning of elements, even as screen size or orientation changes. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/104-interface-and-navigation/layouts/103-constraint.md b/src/data/roadmaps/android/content/104-interface-and-navigation/layouts/103-constraint.md index 3146c8b90..216beb08c 100644 --- a/src/data/roadmaps/android/content/104-interface-and-navigation/layouts/103-constraint.md +++ b/src/data/roadmaps/android/content/104-interface-and-navigation/layouts/103-constraint.md @@ -1 +1,3 @@ -# Constraint \ No newline at end of file +# Constraint + +ConstraintLayout is a ViewGroup that allows you to position and size widgets in a flexible way. It was added to Android Studio 2.2 in 2016. It's similar to RelativeLayout in that all views are laid out according to relationships between sibling views and the parent layout, but it's more flexible than RelativeLayout and easier to use with Android Studio's Layout Editor. All direct children of a ConstraintLayout have a set of constraints that define their position. These constraints are used to position the child's left or top edge relative to other views or the parent layout. The position and size for each view can be specified using a number of methods including baseline alignment, margins, and bias. ConstraintLayout works best with Android Studio's Layout Editor where you can drag-and-drop views and then add constraints to fine-tune view positions. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/104-interface-and-navigation/layouts/104-recycle-view.md b/src/data/roadmaps/android/content/104-interface-and-navigation/layouts/104-recycle-view.md index 05c9e9191..c06caf124 100644 --- a/src/data/roadmaps/android/content/104-interface-and-navigation/layouts/104-recycle-view.md +++ b/src/data/roadmaps/android/content/104-interface-and-navigation/layouts/104-recycle-view.md @@ -1 +1,3 @@ -# Recycle view \ No newline at end of file +# RecycleView + +The `RecyclerView` is an enhanced version of the `ListView` and the `GridView`. It is a more advanced and flexible version of `ListView`. In `RecyclerView`, there are several different components that work together to display your data. The `RecyclerView.Adapter` is similar to the `BaseAdapter`; it takes data and turns it into views that can be inserted in the `RecyclerView` layout. On the other hand, the `RecyclerView.LayoutManager` helps positioning items inside the `RecyclerView` and determining the behavior when scrolling. A third significant component is `RecyclerView.ViewHolder`. It provides references to the views for each data item which help to reduce unnecessary calls to `findViewById()`. It's also important to mention that the `RecyclerView` class supports not only lists but also a custom implementation of horizontal or vertical lists, grids, or staggered grids while offering more opportunities for fantastic custom animations. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/105-design-architecture/100-repository-pattern.md b/src/data/roadmaps/android/content/105-design-architecture/100-repository-pattern.md index 7ff3eab9a..f428de86f 100644 --- a/src/data/roadmaps/android/content/105-design-architecture/100-repository-pattern.md +++ b/src/data/roadmaps/android/content/105-design-architecture/100-repository-pattern.md @@ -1 +1,3 @@ -# Repository pattern \ No newline at end of file +# Repository Pattern + +In Android design architecture, the `Repository Pattern` separates the data sources from the rest of the application. It acts as a mediator between different data sources, such as persistent models, web services, or caches. Instead of having the network and database calls spread out throughout your ViewModel, they are encapsulated within a Repository class. This separation will make the code clean, easy to read and testable. It provides a simple API for data access, the rest of the app doesn't need to know where the data is coming from it just asks the repository. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/105-design-architecture/101-builder-pattern.md b/src/data/roadmaps/android/content/105-design-architecture/101-builder-pattern.md index e0a48f133..3e0ed23af 100644 --- a/src/data/roadmaps/android/content/105-design-architecture/101-builder-pattern.md +++ b/src/data/roadmaps/android/content/105-design-architecture/101-builder-pattern.md @@ -1 +1,3 @@ -# Builder pattern \ No newline at end of file +# Builder Pattern + +The **Builder Pattern** in Android is used to construct complex objects step by step. It separates the construction of an object from its representation. The pattern involves a `Builder` class which is used to construct the `Product` class. The Builder class typically has a method for each part that may be used to construct a Product. It also has a method for returning the final product. The Builder pattern is useful in situations where you might have multiple ways to create an object or when an object requires a large number of parameters for its constructor. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/105-design-architecture/102-observer-pattern/100-flow.md b/src/data/roadmaps/android/content/105-design-architecture/102-observer-pattern/100-flow.md index bff898fa4..5d51234cd 100644 --- a/src/data/roadmaps/android/content/105-design-architecture/102-observer-pattern/100-flow.md +++ b/src/data/roadmaps/android/content/105-design-architecture/102-observer-pattern/100-flow.md @@ -1 +1,3 @@ -# Flow \ No newline at end of file +# Flow + +`Flow` in Android development is part of the Kotlin Coroutines library. It is a type that can emit multiple values sequentially, making it perfect for working with any data streams or any streams of events that aren't instantaneous. Like Observables, `Flow` is also based on the observer pattern, meaning it can emit values and these emissions can be observed and reacted to. However, `Flow` comes with built-in backpressure handling and the ability to transform, filter, or combine these flows in a sequence. Along with Coroutines, `Flow` encourages a more predictable and simplified concurrency design without callback hell problem. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/105-design-architecture/102-observer-pattern/101-rxjava.md b/src/data/roadmaps/android/content/105-design-architecture/102-observer-pattern/101-rxjava.md index 561e4534f..cbb3eef4a 100644 --- a/src/data/roadmaps/android/content/105-design-architecture/102-observer-pattern/101-rxjava.md +++ b/src/data/roadmaps/android/content/105-design-architecture/102-observer-pattern/101-rxjava.md @@ -1 +1,7 @@ -# Rxjava \ No newline at end of file +# RxJava + +RxJava, standing for Reactive Extensions for the JVM, is a library in the Java and Android ecosystem that allows developers to write asynchronous, event-based programs. It is developed according to reactive programming principles and it supports multi-threading operations. One can create data streams from just about anything - variables, data structures, inputs, etc. and these streams could be used with functional programming methods to process the data. + +In Android, RxJava is often used in combination with Retrofit, to handle API calls or with Room, to handle tasks involving the database. This library provides a set of operators such as `map()`, `filter()`, `concat()`, `merge()`, `flatmap()` etc. to handle tasks such as chain asynchronous operations, perform computations, or transform data. + +There are three important entities in RxJava - 'Observable', 'Observer' and 'Subscription'. 'Observable' is a data stream that does some work, 'Observer' watches the 'Observable' and does something when the 'Observable’ changes, and 'Subscription' is what ties an 'Observer' to an 'Observable' - linking their lifecycles and allowing 'Observer’s to unsubscribe (to stop receiving updates) when they’re destroyed. In other words, 'Subscription' is what allows you to manage memory and prevent crashes due to leaks. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/105-design-architecture/102-observer-pattern/102-rxkotlin.md b/src/data/roadmaps/android/content/105-design-architecture/102-observer-pattern/102-rxkotlin.md index 278a478cf..f54056975 100644 --- a/src/data/roadmaps/android/content/105-design-architecture/102-observer-pattern/102-rxkotlin.md +++ b/src/data/roadmaps/android/content/105-design-architecture/102-observer-pattern/102-rxkotlin.md @@ -1 +1,3 @@ -# Rxkotlin \ No newline at end of file +# RxKotlin + +`RxKotlin` is a lightweight library that adds convenient extension functions to `RxJava`. It allows developers to use RxJava with Kotlin in a more idiomatic way, thus making code more readable and understandable. While `RxJava` is a Java-based implementation of Reactive Extensions, `RxKotlin` is essentially a wrapper that includes extension functions and other constructs to take full advantage of Kotlin's features, such as its syntactic simplicity and ease of use. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/105-design-architecture/102-observer-pattern/103-livedata.md b/src/data/roadmaps/android/content/105-design-architecture/102-observer-pattern/103-livedata.md index a3ed66aa9..8a46eb365 100644 --- a/src/data/roadmaps/android/content/105-design-architecture/102-observer-pattern/103-livedata.md +++ b/src/data/roadmaps/android/content/105-design-architecture/102-observer-pattern/103-livedata.md @@ -1 +1,3 @@ -# Livedata \ No newline at end of file +# LiveData + +`LiveData` is a data holder class that can be observed within a given lifecycle. This means that an `Observer` can be added in a pair with a `LifecycleOwner`, and this observer will be notified about modifications of the `LiveData` object only if the associated `LifecycleOwner` is in active state. `LiveData` respects the lifecycle state of app components, such as activities, fragments, or services, and it only updates app-component observers that are in an active lifecycle state. Furthermore, `LiveData` automatically removes the observers when their associated `LifecycleOwner` moves to the `Destroyed` state. This combination of `LiveData` and `LifecycleOwner` helps you to manage appropriate and efficient updates because `LiveData` takes into consideration the lifecycle state of your app components. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/105-design-architecture/102-observer-pattern/index.md b/src/data/roadmaps/android/content/105-design-architecture/102-observer-pattern/index.md index 5fd6fdf55..69b31fe73 100644 --- a/src/data/roadmaps/android/content/105-design-architecture/102-observer-pattern/index.md +++ b/src/data/roadmaps/android/content/105-design-architecture/102-observer-pattern/index.md @@ -1 +1,3 @@ -# Observer pattern \ No newline at end of file +# Observer Pattern + +The **Observer Pattern** is a software design pattern in which an object, known as the subject, maintains a list of its dependants, called observers, and notifies them automatically of any state changes. This is usually done by calling one of their methods. It's mainly used for implementing distributed event handling systems and is viewed as a good practice to follow, making your design more robust, flexible, and scalable. The subject to be observed triggers events and observers react to the change or the event that they are listening to. In Android, observable libraries like `LiveData`, `RxJava`, `Flow`, and other reactive streams allow the implementation of observer pattern. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/105-design-architecture/103-dependency-injection/100-dagger.md b/src/data/roadmaps/android/content/105-design-architecture/103-dependency-injection/100-dagger.md index 382a1a809..e13a3b2f7 100644 --- a/src/data/roadmaps/android/content/105-design-architecture/103-dependency-injection/100-dagger.md +++ b/src/data/roadmaps/android/content/105-design-architecture/103-dependency-injection/100-dagger.md @@ -1 +1,3 @@ -# Dagger \ No newline at end of file +# Dagger + +[Dagger](https://dagger.dev/) is a fully static, compile-time dependency injection framework for both Java and Android. It is an adaptation of an earlier version created by Square that's focused on simplicity and speed. Dagger's primary focus is on compile-time analysis of dependencies, code simplicity, and clarity. It uses annotations to define dependencies, thus aiding in easy readability and understanding of the code. Dagger also eliminates the use of reflection to inject dependencies, thus boosting performance. It offers custom scopes to control the lifespan of instances and ensures that dependencies are Singleton across the entire lifespan of certain scopes. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/105-design-architecture/103-dependency-injection/101-hilt.md b/src/data/roadmaps/android/content/105-design-architecture/103-dependency-injection/101-hilt.md index aff0aee41..935eda834 100644 --- a/src/data/roadmaps/android/content/105-design-architecture/103-dependency-injection/101-hilt.md +++ b/src/data/roadmaps/android/content/105-design-architecture/103-dependency-injection/101-hilt.md @@ -1 +1,3 @@ -# Hilt \ No newline at end of file +# Hilt + +Hilt is a dependency injection library for Android that reduces the boilerplate code that you would normally need to write when setting up manual dependency injection in your project. It is based on the Dagger library, but it simplifies the implementation process and streamlines the use of Dagger in Android apps. To set it up, you must annotate your Android classes and Hilt will automatically generate and provide the necessary dependencies for you. Moreover, Hilt provides predefined set of components tied to the Android lifecycle which helps to handle scoped instances. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/105-design-architecture/103-dependency-injection/102-koin.md b/src/data/roadmaps/android/content/105-design-architecture/103-dependency-injection/102-koin.md index 1b8213ff3..cf5418b8d 100644 --- a/src/data/roadmaps/android/content/105-design-architecture/103-dependency-injection/102-koin.md +++ b/src/data/roadmaps/android/content/105-design-architecture/103-dependency-injection/102-koin.md @@ -1 +1,3 @@ -# Koin \ No newline at end of file +# Koin + +[Koin](https://insert-koin.io) is a lightweight dependency injection framework developed specifically for Kotlin developers. It uses functional resolution only - no proxy, no code generation, no reflection, and offers simplicity by leveraging Kotlin's language features. While Koin is not related to the Android platform, it provides specific extensions enabling an efficient integration into your Android applications, including [Android Architecture Components](https://developer.android.com/topic/libraries/architecture/index.html) and [Kotlin Coroutines](https://kotlinlang.org/docs/reference/coroutines-overview.html), amongst others. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/105-design-architecture/103-dependency-injection/103-kodein.md b/src/data/roadmaps/android/content/105-design-architecture/103-dependency-injection/103-kodein.md index b5c09aa72..1cc02971c 100644 --- a/src/data/roadmaps/android/content/105-design-architecture/103-dependency-injection/103-kodein.md +++ b/src/data/roadmaps/android/content/105-design-architecture/103-dependency-injection/103-kodein.md @@ -1 +1,3 @@ -# Kodein \ No newline at end of file +# Kodein + +`Kodein` is one of the recommended dependency injection frameworks suitable for Android development. This open-source Kotlin library simplifies the DI process by allowing developers to bind various types of dependencies, such as singleton, factory, or provider bindings into containers or `Kodein` modules. It promotes dependency declaration where used, instead of prior declaration. It follows a "Define in Use" principle that enables easy-to-use, easy-to-debug and very idiomatic Kotlin code. It's also worth noting that `Kodein` works hand in hand with Android's lifecycle and provides easy integration with popular libraries such as Android Architecture Components, leveraging their functionality. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/105-design-architecture/103-dependency-injection/index.md b/src/data/roadmaps/android/content/105-design-architecture/103-dependency-injection/index.md index 450bde1c7..246ec9587 100644 --- a/src/data/roadmaps/android/content/105-design-architecture/103-dependency-injection/index.md +++ b/src/data/roadmaps/android/content/105-design-architecture/103-dependency-injection/index.md @@ -1 +1,3 @@ -# Dependency injection \ No newline at end of file +# Dependency Injection + +`Dependency Injection` is a technique where an object does not need to create its own dependencies; instead, dependencies are provided (or injected) at runtime. This technique is highly beneficial in Android Development. It helps in creating loosely coupled and easily testable code. For example, the `Retrofit` instance that your application requires to make network calls can be created somewhere else and can be injected whenever required using libraries like `Dagger`, `Koin` or `Hilt`. The `ViewModel` instances can also be injected rather than being created in the required classes directly. Through dependency injection, plugins ensure the code becomes easier to change, understand, and maintain, hence, improving the quality of the code. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/105-design-architecture/104-factory-pattern.md b/src/data/roadmaps/android/content/105-design-architecture/104-factory-pattern.md index 3a4a744b9..04961ebd1 100644 --- a/src/data/roadmaps/android/content/105-design-architecture/104-factory-pattern.md +++ b/src/data/roadmaps/android/content/105-design-architecture/104-factory-pattern.md @@ -1 +1,37 @@ -# Factory pattern \ No newline at end of file +# Factory Pattern + +The **Factory Pattern** is part of the Creational Design Patterns. This pattern provides an interface for creating objects in a superclass, but allows subclasses to alter the type of objects that will be created. It introduces an abstraction layer between the client code and the concrete objects. Normally, this is achieved by using a factory method to create objects instead of using constructors. The instance of the class is usually created by a method, referred to as a `factory method`, which is either specified in an interface and implemented in implementing classes or implemented in a base class which may be optionally overridden by derived classes. The Factory Method is used when we want to provide users with a way to create an instance of a class from one of several possible classes that share a common super class. + +Here is a basic example of the Factory Pattern: + +```java +public abstract class Animal { + public abstract String makeSound(); +} + +public class Dog extends Animal { + @override + public String makeSound() { + return "Woof"; + } +} + +public class Cat extends Animal { + @override + public String makeSound() { + return "Meow"; + } +} + +public class AnimalFactory { + public Animal createAnimal(String type) { + if ("Dog".equals(type)) { + return new Dog(); + } else if ("Cat".equals(type)) { + return new Cat(); + } + return null; + } +} +``` +In the code above, `AnimalFactory` is the factory class responsible to create and return instances of `Dog` and `Cat` classes. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/105-design-architecture/architectural-patterns/100-mvi.md b/src/data/roadmaps/android/content/105-design-architecture/architectural-patterns/100-mvi.md index 9244a808d..798723d8a 100644 --- a/src/data/roadmaps/android/content/105-design-architecture/architectural-patterns/100-mvi.md +++ b/src/data/roadmaps/android/content/105-design-architecture/architectural-patterns/100-mvi.md @@ -1 +1,3 @@ -# Mvi \ No newline at end of file +# MVI + +"MVI" stands for Model-View-Intent, and is an architectural pattern used in Android development. This pattern introduces a unidirectional data flow which makes it easier to understand an app's state at any given point in time. In the MVI pattern, the `Intent` represents an intention or desire to perform an action, often triggered by user inputs. The `View` is responsible for rendering the UI and emitting intents. The `Model`, on the other hand, represents the state of the app and reacts to intents by changing its state. It's the Model's responsibility to respond to each Intent with a resulting new state. Once a new state is created, it is published back to the `View`. This clear separation and single direction of data and event flow can help in managing side-effects and handling asynchronous actions. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/105-design-architecture/architectural-patterns/101-mvvm.md b/src/data/roadmaps/android/content/105-design-architecture/architectural-patterns/101-mvvm.md index 9fae9b041..f9554bfd5 100644 --- a/src/data/roadmaps/android/content/105-design-architecture/architectural-patterns/101-mvvm.md +++ b/src/data/roadmaps/android/content/105-design-architecture/architectural-patterns/101-mvvm.md @@ -1 +1,3 @@ -# Mvvm \ No newline at end of file +# MVVM + +"**MVVM**" stands for "Model View ViewModel" and it is an architectural pattern that aims to separate the development of Graphical User Interface from the business logic. In MVVM, the **Model** represents the data and the business logic of the app. The **View** is responsible for the display of the data and interacts with the user. The **ViewModel** acts as a link between the Model and the View. It handles all the UI logic and preserves the state of the data when the configuration changes or when the app is stopped and then started again. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/105-design-architecture/architectural-patterns/102-mvp.md b/src/data/roadmaps/android/content/105-design-architecture/architectural-patterns/102-mvp.md index aa0a53a27..f169c4e4d 100644 --- a/src/data/roadmaps/android/content/105-design-architecture/architectural-patterns/102-mvp.md +++ b/src/data/roadmaps/android/content/105-design-architecture/architectural-patterns/102-mvp.md @@ -1 +1,3 @@ -# Mvp \ No newline at end of file +# MVP + +MVP stands for Model-View-Presenter. It is an architectural pattern often used in Android development. In MVP, the architect separates the application's responsibilities into three main layers. The 'Model' refers to the data and business logic of the application. The 'View', typically implemented by an Activity or Fragment in Android, is responsible for displaying the data to the user and collecting user inputs. Lastly, the 'Presenter' works as a bridge between the Model and the View. It listens to user interactions from the View and updates the Model accordingly, and also updates the View based on changes in the Model. This separation of responsibilities allows for better code organization, easier testing, and greater flexibility. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/105-design-architecture/architectural-patterns/103-mvc.md b/src/data/roadmaps/android/content/105-design-architecture/architectural-patterns/103-mvc.md index ada383a85..40205e9ec 100644 --- a/src/data/roadmaps/android/content/105-design-architecture/architectural-patterns/103-mvc.md +++ b/src/data/roadmaps/android/content/105-design-architecture/architectural-patterns/103-mvc.md @@ -1 +1,3 @@ -# Mvc \ No newline at end of file +# MVC + +MVC stands for Model-View-Controller. It is a widely used design pattern for designing software's architecture. According to this, an application is divided into three core components. The 'Model' is responsible for handling the data and business logic. The 'View' is responsible for rendering the model's data and generating the user interface. The 'Controller' acts as an interface between the Model and View. It processes all the user's interactions and updates the View and Model accordingly. It's crucial to note that in MVC, the View can have multiple representations of the Model. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/105-design-architecture/index.md b/src/data/roadmaps/android/content/105-design-architecture/index.md index 2bfcf2fc7..1fdb41f54 100644 --- a/src/data/roadmaps/android/content/105-design-architecture/index.md +++ b/src/data/roadmaps/android/content/105-design-architecture/index.md @@ -1 +1,3 @@ -# Design architecture \ No newline at end of file +# Architecture and Design Patterns + +In Android, **Design Architecture** refers to structuring the code in a way that increases its readability, maintainability, and testability. There are several ways to design architecture like [Model-View-Controller (MVC)](https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller), [Model-View-Presenter (MVP)](https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93presenter), [Model-View-ViewModel (MVVM)](https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93viewmodel), and [Model-View-Intent (MVI)](https://www.raywenderlich.com/817602-mvi-architecture-for-android-tutorial-getting-started). Each of these define the interaction between the data, the logic, and the UI layers. Google’s recommended architectural pattern is [Android Architecture Components](https://developer.android.com/topic/libraries/architecture) which follow the principles of the MVVM pattern. Bear in mind that an architecture is not a rigid structure that fits all solutions. Rather, it serves as a guideline and can be tweaked as necessary. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/106-storage/100-shared-preferences.md b/src/data/roadmaps/android/content/106-storage/100-shared-preferences.md index 31ee54a19..7cf6e9dd8 100644 --- a/src/data/roadmaps/android/content/106-storage/100-shared-preferences.md +++ b/src/data/roadmaps/android/content/106-storage/100-shared-preferences.md @@ -1 +1,3 @@ -# Shared preferences \ No newline at end of file +# Shared Preferences + +Shared Preferences in Android are used to store data in key-value pairs. It works similar to a tiny database where you can save small pieces of data such as settings or the state of an application. When data is saved to Shared Preferences, it persists across user sessions, even if your application is killed or gets deleted. Data in Shared Preferences is not typically used for large amounts of data. To perform actions such as saving, retrieving, or editing data in Shared Preferences, you use an instance of `SharedPreferences.Editor`. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/106-storage/101-datastore.md b/src/data/roadmaps/android/content/106-storage/101-datastore.md index 030f518d9..bc18bd173 100644 --- a/src/data/roadmaps/android/content/106-storage/101-datastore.md +++ b/src/data/roadmaps/android/content/106-storage/101-datastore.md @@ -1 +1,3 @@ -# Datastore \ No newline at end of file +# DataStore + +`DataStore` is a new and improved data storage solution by Android, meant to supersede `SharedPreferences`. It is important to understand that it comes in two different implementations: `Preferences DataStore` and `Proto DataStore`. `Preferences DataStore` uses key-value pairs similar to `SharedPreferences`, but it's more robust and handles runtime exceptions more efficiently. On the other hand, `Proto DataStore` uses custom data types to provide type safety. It lets you leverage the power of Protocol Buffers, a language-neutral, platform-neutral mechanism for serializing structured data, as the data storage format. Operating on data in `DataStore` is transactional, meaning that if an error occurs during an operation, all changes are rolled back, so the data remains in a consistent state. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/106-storage/102-room.md b/src/data/roadmaps/android/content/106-storage/102-room.md index f89c429ef..0b866b6f8 100644 --- a/src/data/roadmaps/android/content/106-storage/102-room.md +++ b/src/data/roadmaps/android/content/106-storage/102-room.md @@ -1 +1,3 @@ -# Room \ No newline at end of file +# Room Database + +"Room" is a persistence library introduced by Google that provides an abstraction layer over SQLite to help with robust database access while harnessing the full power of SQLite. Room supports the creation of databases and defines queries in compile-time-checked SQL strings. These databases belong to the data classes that you create representing your app's data. Room comprises three main components: **Database**, a container that holds your app's data tables; **Entity**, representing a table within the database; and **DAO (Data Access Object)**, containing SQL query methods to interact with the database. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/106-storage/103-file-system.md b/src/data/roadmaps/android/content/106-storage/103-file-system.md index 65fec2b9b..72ab0f3f9 100644 --- a/src/data/roadmaps/android/content/106-storage/103-file-system.md +++ b/src/data/roadmaps/android/content/106-storage/103-file-system.md @@ -1 +1,3 @@ -# File system \ No newline at end of file +# File System + +The Android operating system uses a specific File System structure to store and manage files. It’s primarily based on the Linux File system, with some specific Android features. The File System includes several key directories that are used for specific purposes. For instance, directories such as `/system` hold system apps and firmware, while `/data` contains user data, settings and installed applications, and `/sdcard` usually represents an internal or external SD card for additional storage. It's worth mentioning directories like `/proc`, `/dev`, and `/sys` which are virtual file systems and house important system files. As an Android developer, understanding these directories can help you interact with Android's file system more effectively. Note that access to some of these directories may be restricted depending on system permissions. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/106-storage/index.md b/src/data/roadmaps/android/content/106-storage/index.md index 19c72df0c..948a88d85 100644 --- a/src/data/roadmaps/android/content/106-storage/index.md +++ b/src/data/roadmaps/android/content/106-storage/index.md @@ -1 +1,3 @@ -# Storage \ No newline at end of file +# Storage + +On Android devices, storage refers to where your data such as apps, photos, videos, and music are saved. It can be categorized into two types: internal and external storage. Internal Storage is where data is stored that's tied directly to your app. This data is private by default and not accessible by other apps. External Storage, on the other hand, is a shared space where all apps can read and write data. It can be further subcategorized into Public and Private directories. Public directories are shared among all apps while private directories are specific to your app but can be accessed by other apps if they have the appropriate permissions. To control the access to these storage types, Android provides a file-based and a Scoped Storage framework. The latter limits apps' access to external storage and gives users more control over their data. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/107-network/100-retrofit.md b/src/data/roadmaps/android/content/107-network/100-retrofit.md index dd8e8c2f1..68823fe37 100644 --- a/src/data/roadmaps/android/content/107-network/100-retrofit.md +++ b/src/data/roadmaps/android/content/107-network/100-retrofit.md @@ -1 +1,13 @@ -# Retrofit \ No newline at end of file +# Retrofit + +Retrofit is a type-safe HTTP client for Android and Java. It's designed to connect your application with an API or a back-end web service. Retrofit uses annotations to encode details about the API's operations and requests, such as the HTTP method (GET, POST, PUT, DELETE, HEAD) and the query parameters. The main advantage of Retrofit over other similar libraries is in its simplicity and intuitiveness, and it efficiently handles all network calls. +``` +Retrofit retrofit = new Retrofit.Builder() + .baseUrl("https://api.example.com") + .addConverterFactory(GsonConverterFactory.create()) + .build(); + +ExampleService service = retrofit.create(ExampleService.class); +Call call = service.exampleCall(); +``` +The `baseUrl()` is your API base URL. The `addConverterFactory()` specifies a factory to use for serialization and deserialization. In the example above, the Gson library will handle the conversion of JSON data. The `build()` call finishes the builder and returns the retrofit instance. Finally, `create()` generates an implementation of the `ExampleService` interface. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/107-network/101-okhttp.md b/src/data/roadmaps/android/content/107-network/101-okhttp.md index 82a47ece2..94f1d7419 100644 --- a/src/data/roadmaps/android/content/107-network/101-okhttp.md +++ b/src/data/roadmaps/android/content/107-network/101-okhttp.md @@ -1 +1,3 @@ -# Okhttp \ No newline at end of file +# OkHttp + +`OkHttp` is an HTTP client that's extremely efficient, enabling several advanced features in Android app or other platforms that use Java. Developed by Square, it's built for high efficiency and capacity, simplifying many networking tasks, including connection pooling, response caching, and request retries. OkHttp allows seamless recovery from network issues, minimizing the loss of data. The library ensures fewer errors and higher quality of service by using the modern TLS encryption, extensible request and response models, and a fluent API for ease of use and integration. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/107-network/102-apollo-android.md b/src/data/roadmaps/android/content/107-network/102-apollo-android.md index 812ca7cbb..0c7b8304a 100644 --- a/src/data/roadmaps/android/content/107-network/102-apollo-android.md +++ b/src/data/roadmaps/android/content/107-network/102-apollo-android.md @@ -1 +1,3 @@ -# Apollo android \ No newline at end of file +# Apollo-Android + +**Apollo Android** is a set of tools for using GraphQL with Android, made by the Apollo community developers. It's fully written in Kotlin and it was designed to seamlessly integrate with any Android app, making fetching data across network and handling data in the client-side a breeze. Apollo Android runs your queries and mutations and returns results as generated Kotlin types. It also normalizes your data and caches your results for further speed enhancements. It operates both on Android and Kotlin/JVM backend environment. It's also coroutines-first making handling concurrency easy and effective. To use Apollo Android, you'll set up the plugin, point it at your GraphQL schema, and write GraphQL queries. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/107-network/index.md b/src/data/roadmaps/android/content/107-network/index.md index 56863069b..d938f8a23 100644 --- a/src/data/roadmaps/android/content/107-network/index.md +++ b/src/data/roadmaps/android/content/107-network/index.md @@ -1 +1,3 @@ -# Network \ No newline at end of file +# Network + +In Android, the `Network` component offers vital capabilities that enable communication and interaction among users, between users and remote servers, and between users and cloud services. Android provides a variety of APIs and services to interact with networks. The primary APIs are the `ConnectivityManager`, `WifiManager`, `TelephonyManager`, and `BluetoothManager` APIs, among others. ConnectivityManager, for example, can tell you about network connectivity changes. The **Network** component also involves tools for network monitoring and testing, which can be useful for optimizing app performance and dealing with connectivity issues. Be aware, some network operations are subject to system imposed restrictions and require specific permissions. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/108-asynchronism/100-coroutines.md b/src/data/roadmaps/android/content/108-asynchronism/100-coroutines.md index aa02d967d..707afd52c 100644 --- a/src/data/roadmaps/android/content/108-asynchronism/100-coroutines.md +++ b/src/data/roadmaps/android/content/108-asynchronism/100-coroutines.md @@ -1 +1,3 @@ -# Coroutines \ No newline at end of file +# Coroutines + +In Android, `coroutines` refer to a concurrency design pattern that you can use on Android to simplify code that executes asynchronously. `Coroutines` provide a way to write asynchronous, non-blocking code in a natural, sequential manner. The fundamental building blocks of `coroutines` are `suspend` functions which are simply functions that can be paused and resumed at later times. They are the key to writing non-blocking asynchronous code and represent a single unit of asynchronous computation. This aspect of `coroutines` makes them useful for managing long-running tasks that might otherwise block the main thread and cause your application to become unresponsive. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/108-asynchronism/101-threads.md b/src/data/roadmaps/android/content/108-asynchronism/101-threads.md index e8b5f56d7..e496add54 100644 --- a/src/data/roadmaps/android/content/108-asynchronism/101-threads.md +++ b/src/data/roadmaps/android/content/108-asynchronism/101-threads.md @@ -1 +1,3 @@ -# Threads \ No newline at end of file +# Threads + +In Android, a `Thread` is a concurrent unit of execution. It has its own call stack, but can share its state with other threads in the same process, i.e., they can share the same memory area. They're primarily used in Android to perform operations in the background. One important aspect to note is that Android UI operations are not thread-safe, meaning they should always be done on the UI thread. Operations on `Threads` are typically managed through `Handler`, `Looper` and `MessageQueue` classes. Android also provides high-level constructs like `AsyncTask` and `Loader` for managing threads in relation to the UI. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/108-asynchronism/102-rxjava.md b/src/data/roadmaps/android/content/108-asynchronism/102-rxjava.md index 561e4534f..72e3ff06e 100644 --- a/src/data/roadmaps/android/content/108-asynchronism/102-rxjava.md +++ b/src/data/roadmaps/android/content/108-asynchronism/102-rxjava.md @@ -1 +1,3 @@ -# Rxjava \ No newline at end of file +# RxJava + +RxJava (Reactive Extensions for the JVM) is a powerful library for composing asynchronous and event-based programs using observable sequences in Java. If you are an Android developer, you might be familiar with callbacks and async tasks to perform long-running operations in the background. However, handling multiple async tasks and nested callbacks can produce code that's complicated to read and maintain. To alleviate such complexities, RxJava provides tools and methods to create, transform and chain Observable sequences in a clean and declarative manner. In other words, it provides a way to manage asynchronicity and concurrency in your code. diff --git a/src/data/roadmaps/android/content/108-asynchronism/103-rxkotlin.md b/src/data/roadmaps/android/content/108-asynchronism/103-rxkotlin.md index 278a478cf..bec3a9363 100644 --- a/src/data/roadmaps/android/content/108-asynchronism/103-rxkotlin.md +++ b/src/data/roadmaps/android/content/108-asynchronism/103-rxkotlin.md @@ -1 +1,3 @@ -# Rxkotlin \ No newline at end of file +# RxKotlin + +`RxKotlin` is a lightweight language extension to Java for Android development, enabling Android apps to be built using Kotlin with Reactivex. It brings the power of reactive programming paradigm to Kotlin, extending its capabilities for processing asynchronous streams of data. It allows you to express static (e.g., already known) or dynamic (e.g., future unknown) data streams, and perform various operations on them easily. Key concepts of `RxKotlin` include Observables, Observers and Schedulers. Observables represent the data streams, Observers interact with the data stream, and Schedulers determine on which thread operations are performed. RxKotlin helps manage background tasks, handle asynchronous data streams, and implement complex UIs, among others. It is especially beneficial for mobile development where UI thread and background thread coordination is essential. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/108-asynchronism/104-work-manager.md b/src/data/roadmaps/android/content/108-asynchronism/104-work-manager.md index 80cec86dc..6460e03f2 100644 --- a/src/data/roadmaps/android/content/108-asynchronism/104-work-manager.md +++ b/src/data/roadmaps/android/content/108-asynchronism/104-work-manager.md @@ -1 +1,3 @@ -# Work manager \ No newline at end of file +# WorkManager + +`WorkManager` is an Android library introduced by Google to execute tasks in a predictable and reliable manner. It's designed for tasks that require guaranteed execution, even if the app has been closed or the device restarts. It is backwards compatible up to API 14 and uses JobScheduler for API 23 and above, whilst using a combination of BroadcastReceiver + AlarmManager for APIs 14 and up. Regardless of the device API level, WorkManager works for all Android devices. Three types of work are supported by WorkManager - OneTimeWorkRequest, PeriodicWorkRequest, and DelayedWorkRequest. You can have constraints too for your work execution like work only when there's Internet or work only when the device is in idle state. It also supports work-chaining where you can create a chain of works to be performed in a specific order. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/108-asynchronism/index.md b/src/data/roadmaps/android/content/108-asynchronism/index.md index da1006540..49fe87ffe 100644 --- a/src/data/roadmaps/android/content/108-asynchronism/index.md +++ b/src/data/roadmaps/android/content/108-asynchronism/index.md @@ -1 +1,3 @@ -# Asynchronism \ No newline at end of file +# Asynchronism + +Asynchronism in Android is a practice that defines operations, which can run independently from the main operation without following the program's linear flow. The Android system uses threads to handle asynchronous processes. These threads function independently, ensuring that complex or time-consuming operations do not interfere with the user interface or other essential parts of the application. Android provides various tools for carrying out asynchronous tasks, such as `Handler`, `ThreadPoolExecutor`, `IntentService`, `AsyncTask`, and `Loader` etc. These tools provide ways to execute tasks on different threads and communicate the results back to the main thread. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/109-common-services/100-firebase/100-authentication.md b/src/data/roadmaps/android/content/109-common-services/100-firebase/100-authentication.md index 66a783b30..902d9e856 100644 --- a/src/data/roadmaps/android/content/109-common-services/100-firebase/100-authentication.md +++ b/src/data/roadmaps/android/content/109-common-services/100-firebase/100-authentication.md @@ -1 +1,9 @@ -# Authentication \ No newline at end of file +# Authentication + +Firebase Authentication in Android provides backend services, easy-to-use SDKs, and ready-made UI libraries to authenticate users to your app. It supports authentication using passwords, popular federated identity providers like Google, Facebook and Twitter, and more. Firebase also facilitates integration of functionality to sign in, sign up, and reset password. Moreover, it can be used to secure your database by implementing role-based access to data and to provide personalized experience according to the user's unique identity. + +Firebase Authentication offers two methods to authenticate. These are using an `email/password` login provided by Firebase Authentication or a `federated identity provider` like Google or Facebook. It also covers token-based authentication by creating custom tokens or verifying ID tokens. In addition to this, Firebase Authentication works with Firebase's client SDKs for practical use and works for long-running server processes for some of your users. + +Firebase Authentication provides a full suite of capabilities even beyond authentication to make your life easier, which includes Security Rules for Cloud Storage and Cloud Firestore, Firebase Dynamic Links, and Firebase Invites. + +Remember to always keep your development environment and Firebase console synced for smooth development operations. Any changes to the authentication method in the Firebase console should be reflected in your app and vice versa. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/109-common-services/100-firebase/101-crashlytics.md b/src/data/roadmaps/android/content/109-common-services/100-firebase/101-crashlytics.md index df97e84a1..2308ad652 100644 --- a/src/data/roadmaps/android/content/109-common-services/100-firebase/101-crashlytics.md +++ b/src/data/roadmaps/android/content/109-common-services/100-firebase/101-crashlytics.md @@ -1 +1,3 @@ -# Crashlytics \ No newline at end of file +# Crashlytics + +`Crashlytics` is a lightweight, real-time crash reporter that helps you track, prioritize, and fix stability issues that dismantle your app's quality. It delivers fast and precise information about crashes and helps you gain insights into your app's performance so you can pinpoint the exact line of code your app crashed on. Crashlytics offers a comprehensive suite of features like crash analysis, issue aggregation, and tracking user activities that led to a crash. This tool is now a part of Google's `Firebase` platform but can also be used independently. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/109-common-services/100-firebase/102-remote-config.md b/src/data/roadmaps/android/content/109-common-services/100-firebase/102-remote-config.md index 8da59e4e0..63e2cab59 100644 --- a/src/data/roadmaps/android/content/109-common-services/100-firebase/102-remote-config.md +++ b/src/data/roadmaps/android/content/109-common-services/100-firebase/102-remote-config.md @@ -1 +1,3 @@ -# Remote config \ No newline at end of file +# Remote Config + +Firebase Remote Config is a cloud service offered by Firebase. It lets you change the behavior and appearance of your app without requiring a new app release. By using Firebase Remote config, you can customize your app for different user segments, manage the core aspects of your app by modifying parameters externally, and conduct A/B tests to improve your app. It works efficiently by using default values that control the behavior and appearance of your app. When your app needs configuration information, it makes a request to the Firebase Remote Config server. If the server has updated values, these values replace the default ones, hence modifying the app's behavior or appearance according to your needs. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/109-common-services/100-firebase/103-cloud-messaging.md b/src/data/roadmaps/android/content/109-common-services/100-firebase/103-cloud-messaging.md index 08df8f7d9..8265a2595 100644 --- a/src/data/roadmaps/android/content/109-common-services/100-firebase/103-cloud-messaging.md +++ b/src/data/roadmaps/android/content/109-common-services/100-firebase/103-cloud-messaging.md @@ -1 +1,3 @@ -# Cloud messaging \ No newline at end of file +# Cloud Messaging + +Firebase Cloud Messaging (FCM) is a powerful, battery-efficient messaging service that enables you to send messages reliably and securely to your Android applications. It enables you to send two types of messages: "notification messages" and "data messages". Notification messages are primarily meant for user notifications and will only be delivered when the application is in the foreground. On the other hand, data messages can handle even when the app is in the background or killed and can be used to send custom key-value pairs. FCM also supports various additional features, such as topic messaging to send messages to multiple devices subscribed to a common topic, device group messaging for sending messages to groups of user devices, and upstream messaging for sending messages from the client application to the FCM server. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/109-common-services/100-firebase/104-fire-store.md b/src/data/roadmaps/android/content/109-common-services/100-firebase/104-fire-store.md index be021c724..f91f445c0 100644 --- a/src/data/roadmaps/android/content/109-common-services/100-firebase/104-fire-store.md +++ b/src/data/roadmaps/android/content/109-common-services/100-firebase/104-fire-store.md @@ -1 +1,3 @@ -# Fire store \ No newline at end of file +# FireStore + +Firestore, often referred to as Firebase Firestore or Cloud Firestore, is a flexible, scalable database for mobile, web, and server development from Firebase and Google Cloud. Firestore comes with features like expressive querying, real-time updates, and automatic multi-region data replication. It is designed to offer seamless integration with other Firebase and Google Cloud products. It provides a cloud-based NoSQL database, which means the data is stored as collections of documents. Each document, in turn, contains a set of key-value pairs. Firestore ensures durable networking, so data syncs across client apps in real-time, even when the device is offline, making it easier for you to work with distributed data that can be kept in sync across various clients. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/109-common-services/100-firebase/index.md b/src/data/roadmaps/android/content/109-common-services/100-firebase/index.md index c96e0cd4e..b02fbec7b 100644 --- a/src/data/roadmaps/android/content/109-common-services/100-firebase/index.md +++ b/src/data/roadmaps/android/content/109-common-services/100-firebase/index.md @@ -1 +1,3 @@ -# Firebase \ No newline at end of file +# Firebase + +`Firebase` is a Backend-as-a-Service (BaaS) app development platform that provides hosted backend services such as a real-time database, cloud storage, authentication, crash reporting, machine learning, remote configuration, and hosting for your static files. It provides an API that allows developers to store and sync data across multiple clients. Firebase includes a responsive client library to bind application data to your user interface and backend services for authentication systems, analytics, database management, etc. Firebase simplifies application development all while ensuring server-side effectiveness. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/109-common-services/101-google-admob.md b/src/data/roadmaps/android/content/109-common-services/101-google-admob.md index 3101e78a5..15613c1c7 100644 --- a/src/data/roadmaps/android/content/109-common-services/101-google-admob.md +++ b/src/data/roadmaps/android/content/109-common-services/101-google-admob.md @@ -1 +1,3 @@ -# Google admob \ No newline at end of file +# Google AdMob + +Google AdMob is a mobile advertising platform designed for app developers to monetize their apps by displaying ads from over 1 million Google advertisers. AdMob supports a wide range of ad formats, such as banner ads, interstitial ads, video ads, and more. It offers a powerful mediator that enables you to display ads from multiple sources, which includes the Google Mobile Ads SDK, third-party ad networks, and house ad campaigns. Furthermore, AdMob provides analytical tools to better understand your users and maximize ad revenue. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/109-common-services/102-google-play-services.md b/src/data/roadmaps/android/content/109-common-services/102-google-play-services.md index 283171604..6c2b45099 100644 --- a/src/data/roadmaps/android/content/109-common-services/102-google-play-services.md +++ b/src/data/roadmaps/android/content/109-common-services/102-google-play-services.md @@ -1 +1,3 @@ -# Google play services \ No newline at end of file +# Google Play Services + +*Google Play Services* is a proprietary background service and API package for Android devices from Google. Operated by Google, the service provides core functionalities like authentication for Google services, synchronized contacts, access to all the latest user privacy settings, and higher quality, lower-powered location-based services. It also speeds up offline searches, provides more immersive maps, and improves gaming experiences. Google Play Services play a crucial role in the operation of various other applications, including those not developed by Google. Moreover, it improves the overall Android experience by speeding up offline searches, providing more detailed maps, enhancing gaming experiences, and more. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/109-common-services/103-google-maps.md b/src/data/roadmaps/android/content/109-common-services/103-google-maps.md index 0e837b79d..9e0076d28 100644 --- a/src/data/roadmaps/android/content/109-common-services/103-google-maps.md +++ b/src/data/roadmaps/android/content/109-common-services/103-google-maps.md @@ -1 +1,3 @@ -# Google maps \ No newline at end of file +# Google Maps + +Google Maps is a crucial service on Android, offering powerful, user-friendly mapping technology and local business information. Google Maps features include street maps, satellite imagery, 360° panoramic views of streets (Street View), real-time traffic conditions (Google Traffic), and route planning for traveling by foot, car, bicycle and air, or public transportation. The service's interface includes a function to overlay various layers such as traffic density, public transit lines, and cycling paths. Google Maps for Android also provides an API, which allows developers to interface with and control certain aspects of the Google Maps service in their applications. This capability subjects to certain usage limits and requirements set by Google. diff --git a/src/data/roadmaps/android/content/109-common-services/index.md b/src/data/roadmaps/android/content/109-common-services/index.md index 36eef9f38..31d6f0af5 100644 --- a/src/data/roadmaps/android/content/109-common-services/index.md +++ b/src/data/roadmaps/android/content/109-common-services/index.md @@ -1 +1,3 @@ -# Common services \ No newline at end of file +# Common Services + +In Android, "Common Services" are functional units or components provided by the Android system for use by developers. These services include things such as Location Services (used to determine the device's geographical location), Notification Services (handles the display and management of user notifications), and Sensor Services (interacts with hardware sensors). Other common services are Network and Connectivity Services, Account Manager, and Data Storage Services among others. They simplify the development process by handling complex functionalities behind the scenes, allowing developers to focus on the application's specific needs. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/110-linting/100-ktlint.md b/src/data/roadmaps/android/content/110-linting/100-ktlint.md index 0d137dacf..788892935 100644 --- a/src/data/roadmaps/android/content/110-linting/100-ktlint.md +++ b/src/data/roadmaps/android/content/110-linting/100-ktlint.md @@ -1 +1,3 @@ -# Ktlint \ No newline at end of file +# Ktlint + +`ktlint` is a static code analysis tool. It enforces a highly consistent style and adheres extensively to the official Kotlin coding conventions. `ktlint` does not have any configuration options (by design). The only exceptions are disabling specific rule(s) and specifying indentation size. `ktlint` can check, as well as automatically fix your code. Its main goal is to bring unified code style to your project. It works on the command line as well, so it can be hooked up into your continuous integration pipeline. It also has Ant, Gradle and Maven wrappers. You can use Ktlint on any Android/Kotlin project, as long as you have Gradle or Maven installed. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/110-linting/101-detekt.md b/src/data/roadmaps/android/content/110-linting/101-detekt.md index 5b76dfe42..4177bafce 100644 --- a/src/data/roadmaps/android/content/110-linting/101-detekt.md +++ b/src/data/roadmaps/android/content/110-linting/101-detekt.md @@ -1 +1,3 @@ -# Detekt \ No newline at end of file +# Detekt + +`Detekt` is a static code analysis tool for the Kotlin programming language. It operates on the abstract syntax tree provided by the Kotlin compiler and can run in the command line or as a task in your Gradle build script. Detekt provides complexity reports that can be used to identify overly complex code and help simplify it. It also checks for a variety of potential bugs and code smells, including issues with formatting, naming conventions, exception handling, and more. Moreover, Detekt is highly configurable, allowing you to enable, disable, or modify the behavior of its checks to suit your project's needs. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/110-linting/index.md b/src/data/roadmaps/android/content/110-linting/index.md index 13d3803a2..a2344d163 100644 --- a/src/data/roadmaps/android/content/110-linting/index.md +++ b/src/data/roadmaps/android/content/110-linting/index.md @@ -1 +1,3 @@ -# Linting \ No newline at end of file +# Linting + +`Linting` in Android is a tool that analyzes the source code of your application to identify potential errors, bugs, stylistic errors, and suspicious constructs. The term Linting came from a Unix utility that examined C language source code. In Android, it not only checks for potential Java issues but also for XML layout files and provides alerts for issues it encounters regarding usability, performance, and accessibility. For instance, it may scrutinize a draft of your AndroidManifest.xml file for potential duplication of elements or other anomalies that would cause the app to crash. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/111-debugging/100-timber.md b/src/data/roadmaps/android/content/111-debugging/100-timber.md index 950492816..fc3fcdc6d 100644 --- a/src/data/roadmaps/android/content/111-debugging/100-timber.md +++ b/src/data/roadmaps/android/content/111-debugging/100-timber.md @@ -1 +1,3 @@ -# Timber \ No newline at end of file +# Timber + +`Timber` is a logging utility tool that has been specifically extended from the `Log` class of Android. It has been built to simplify the logging process while aiming to reduce the amount of boilerplate code the developer has to write. It was designed and is maintained by Jake Wharton, a renowned contributor in the Android Developer community. In Timber, each log message is directed to the next available logger, reducing the redundancy of manually assigning log tags. The simplicity of Timber is highlighted by its ability to log without defining any tag. Most importantly, Timber only logs messages in debug builds by default, avoiding potential data leaks in your production application. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/111-debugging/101-leak-canary.md b/src/data/roadmaps/android/content/111-debugging/101-leak-canary.md index 17a61c0ea..3fec9a18c 100644 --- a/src/data/roadmaps/android/content/111-debugging/101-leak-canary.md +++ b/src/data/roadmaps/android/content/111-debugging/101-leak-canary.md @@ -1 +1,3 @@ -# Leak canary \ No newline at end of file +# Leak Canary + +LeakCanary is a powerful open-source memory leak detection library for Android and Java. It is integrated into your app, and once you run your app, LeakCanary immediately starts watching for memory leaks and captures a memory dump if it detects one. After investigation, it will present a full stack trace to help you pinpoint the exact location of the memory leak. With the LeakCanary's user-friendly interface, you can then analyze the memory leak right in your app. The most recent version of LeakCanary also includes other improvements like automatic detection of leaks in Activity, Fragment, View, ViewModel, LiveData, etc. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/111-debugging/102-chucker.md b/src/data/roadmaps/android/content/111-debugging/102-chucker.md index 88ac4beca..1fbaebc4e 100644 --- a/src/data/roadmaps/android/content/111-debugging/102-chucker.md +++ b/src/data/roadmaps/android/content/111-debugging/102-chucker.md @@ -1 +1,3 @@ -# Chucker \ No newline at end of file +# Chucker + +`Chucker` is an open-source debugging library created for Android applications. It has been designed to be easy to use and convenient for developers. This library intercepts and records all HTTP requests and responses inside your application, which helps to visualize and share this information in an understandable and easy-to-read format. Using Chucker's distinct features, you can inspect all the HTTP and HTTPS traffic going in and out of your app directly. In addition, it provides other nifty features such as a user-friendly interface to view the server's raw response. It's like having a built-in network inspector in your debugging tool, enabling you to solve network-related issues more efficiently. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/111-debugging/103-jetpack-benchmark.md b/src/data/roadmaps/android/content/111-debugging/103-jetpack-benchmark.md index 424721414..1d5d0e26e 100644 --- a/src/data/roadmaps/android/content/111-debugging/103-jetpack-benchmark.md +++ b/src/data/roadmaps/android/content/111-debugging/103-jetpack-benchmark.md @@ -1 +1,3 @@ -# Jetpack benchmark \ No newline at end of file +# Jetpack Benchmark + +Jetpack Benchmark is a library within the Android Jetpack Suite that allows developers to quickly and accurately measure the performance of their apps. This library can help measure CPU, memory, and IO performance of code in Android apps. Developers can define some specific code paths to be benchmarked by wrapping the code in `BenchmarkRule.measureRepeated {}`. In addition, it automatically takes care of warmup, measures your code performance, and outputs benchmarking results to the Android Studio's logcat. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/111-debugging/index.md b/src/data/roadmaps/android/content/111-debugging/index.md index 948532978..55f486b1b 100644 --- a/src/data/roadmaps/android/content/111-debugging/index.md +++ b/src/data/roadmaps/android/content/111-debugging/index.md @@ -1 +1,3 @@ -# Debugging \ No newline at end of file +# Debugging + +"Debugging" is a critical step in the app development process. In Android development, it includes identifying and fixing errors, or bugs, in your code. You can debug Android apps using several tools and techniques. For example, Android Studio, the primary integrated development environment (IDE) for Android, comes with a built-in debugging tool, the Android Debug Bridge (ADB). This command-line tool allows you to communicate your device and perform various actions like installing and debugging apps. Android Studio also supports step-by-step debugging, where you can set breakpoints in your code and inspect the application state at those points. Additionally, you can use log messages to monitor the behavior of your application, which is especially useful for understanding the state of your app during runtime. Remember that before debugging, you need to build your app in debug mode. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/112-testing/100-espresso.md b/src/data/roadmaps/android/content/112-testing/100-espresso.md index ad49307a6..b2bcf3745 100644 --- a/src/data/roadmaps/android/content/112-testing/100-espresso.md +++ b/src/data/roadmaps/android/content/112-testing/100-espresso.md @@ -1 +1,3 @@ -# Espresso \ No newline at end of file +# Espresso + +Espresso is a testing framework provided by Android to create UI tests for Android applications. It automatically synchronizes your test actions with the UI of your application, ensuring that your test will only proceed when the necessary UI activities have been completed. In Espresso, you can programmatically simulate user interactions like clicking buttons, typing text, or swiping screens, and then examine the UI's state to confirm it's as expected. Espresso tests can run on devices running Android 4.3 (API level 18) or higher. It's important to note that Espresso tests are written based on what the user can see on the screen. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/112-testing/101-junit.md b/src/data/roadmaps/android/content/112-testing/101-junit.md index fd259949f..d5bfb6e53 100644 --- a/src/data/roadmaps/android/content/112-testing/101-junit.md +++ b/src/data/roadmaps/android/content/112-testing/101-junit.md @@ -1 +1,3 @@ -# Junit \ No newline at end of file +# JUnit + +JUnit is a popular testing framework for Java programming. It forms the basis for many other testing libraries and tools in the Android ecosystem, making it important for any Android developer to become familiar with. The basic use of JUnit involves annotations such as `@Test`, indicating methods that represent a single test case. Other useful features include `@Before` and `@After` which allow for setup and teardown processes to be defined clearly. Another powerful feature in JUnit is the ability to create parameterized tests, effectively running the same test multiple times with different inputs. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/112-testing/index.md b/src/data/roadmaps/android/content/112-testing/index.md index 94cfd7d77..e25b54975 100644 --- a/src/data/roadmaps/android/content/112-testing/index.md +++ b/src/data/roadmaps/android/content/112-testing/index.md @@ -1 +1,3 @@ -# Testing \ No newline at end of file +# Testing + +***Android Testing*** is a crucial part of the app development process. It involves validating the functionality, performance, usability, and consistency of your app before deploying it to the Play Store. There are two types of testing methods notably used: **Unit testing** and **Instrumentation testing**. Unit testing, as the name suggests, tests each unit or segment of your code separately. It doesn't require Android dependencies and hence, runs faster. Instrumentation testing, on another hand, requires Android dependencies and is slower. Instrumentation testing tests the UIs, simulates user interactions and validates the navigation between different parts of your app. Android provides built-in testing frameworks like `JUnit` for unit testing and `Espresso` for Instrumentation testing. These can effectively test different parts of your app, assuring its robustness. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/113-distribution/100-google-playstore.md b/src/data/roadmaps/android/content/113-distribution/100-google-playstore.md index 55de3901d..a686647b5 100644 --- a/src/data/roadmaps/android/content/113-distribution/100-google-playstore.md +++ b/src/data/roadmaps/android/content/113-distribution/100-google-playstore.md @@ -1 +1,3 @@ -# Google playstore \ No newline at end of file +# Google Playstore + +**Google Play Store** is the official distribution channel for Android apps and other digital media content. It is a global online software store developed and operated by Google. Developers submit their applications to Google Play through the Play Console where Google Play's automated systems scan for potentially malicious code and content violations, before they are published on the Play Store. Users can then browse, download, and use these applications on their Android devices or via the web. Purchases, downloads, and user feedback can be tracked via the Google Play Console. Owners of Android devices can also configure automatic updates for the applications they have installed from the store. This platform supports multiple languages and multiple forms of payment methods, making it accessible and customer-friendly. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/113-distribution/101-firebase-distribution.md b/src/data/roadmaps/android/content/113-distribution/101-firebase-distribution.md index 097628f63..a3c7b99ef 100644 --- a/src/data/roadmaps/android/content/113-distribution/101-firebase-distribution.md +++ b/src/data/roadmaps/android/content/113-distribution/101-firebase-distribution.md @@ -1 +1,3 @@ -# Firebase distribution \ No newline at end of file +# Firebase Distribution + +Firebase Distribution is a development tool within the Google Firebase suite that allows you to share pre-release versions of your Android apps with your development team. It enables you to distribute your app binaries to multiple testers and teams to get feedback before the app's official launch. Firebase Distribution supports both Android and iOS applications and works in tandem with other features, like Firebase Crashlytics, to effectively manage the testing and debugging aspects of your application's lifecycle. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/113-distribution/102-signed-apk.md b/src/data/roadmaps/android/content/113-distribution/102-signed-apk.md index f69cc7e1a..4d64ad4af 100644 --- a/src/data/roadmaps/android/content/113-distribution/102-signed-apk.md +++ b/src/data/roadmaps/android/content/113-distribution/102-signed-apk.md @@ -1 +1,3 @@ -# Signed apk \ No newline at end of file +# Signed APK + +A **Signed APK** is a version of your app that you prepare for distribution in the Play Store or other Android markets. When you sign your app using a private key, you authenticate your identity as the developer of the app. It is a required step by the Android system that ensures only updates to the APK that are from the original developer will be accepted. The Android system refuses to install an app if it's not signed appropriately, thereby protecting users from potential security risks. Please make sure that you keep your private key in a safe place for future updates to your app, losing it would imply that you cannot update your app anymore. \ No newline at end of file diff --git a/src/data/roadmaps/android/content/113-distribution/index.md b/src/data/roadmaps/android/content/113-distribution/index.md index a8994647f..95ab195d1 100644 --- a/src/data/roadmaps/android/content/113-distribution/index.md +++ b/src/data/roadmaps/android/content/113-distribution/index.md @@ -1 +1,3 @@ -# Distribution \ No newline at end of file +# Distribution + +Distribution in Android refers to the methods and channels you can use to get your Android application into the hands of users. You can choose to distribute your app on the Google Play Store, which is the official app store for the Android operating system. This platform makes your app available to users in various countries around the world. Additionally, you can also opt to distribute your app through other third-party app stores or even your own website. Furthermore, Google provides a range of distribution options such as country targeting, device targeting, and staged rollouts, which can be customized according to your distribution strategy. Remember, when you submit your application for distribution, you must adhere to the respective app store's policy and content guidelines. \ No newline at end of file diff --git a/src/styles/global.css b/src/styles/global.css index 86746f96e..9402119f2 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -32,7 +32,7 @@ blockquote p:before { .prose ul li > code, .prose ol li > code, -p > code, +p code, a > code, strong > code, em > code,