Welcome to the Android Examples Project - a collection of self-contained examples demonstrating various aspects of Android development using the latest technologies and best practices. Each example is maintained in its own branch, so you can easily check out the specific sample you're interested in.
To get started with this project, clone the repository and checkout the branch that corresponds to the example you want to explore:
git clone https://github.com/sceik/AndroidExamples.git
cd AndroidExamples
To switch to an example branch, use:
git checkout <branch-name>
Replace <branch-name>
with the name of the branch you want to explore.
Before you begin, ensure you have met the following requirements:
- Android Studio Chipmunk | 2021.2.1 or higher
- Android SDK with the latest updates installed
Here's a table describing the branches available in this repository:
Branch Name | Description |
---|---|
main |
The default branch with the latest stable code |
fragment-introduction | An example showcasing the usage of Fragments |
remote-api | An example showcasing the usage of remote APi to read data |
shared-preference | An example showcasing the usage of SharePreference to save and read data |
More branches... | Descriptions of other branches will be added here... |
Each branch in this repository is a self-contained example demonstrating a specific feature or concept in Android development. Below is a brief overview of what you can find in each branch.
This branch contains an example that introduces the concept of Fragments in Android. It includes:
- How to create a Fragment
- Fragment lifecycle
- Communication between Fragments and Activities
This branch contains an example that introduces the concept of remote API Call in Android. It includes:
- How use Retrofit lib
- Coroutines examples
- Gleed for image load
git checkout fragment-introduction
If you would like to contribute to the project, please follow these steps:
- Fork the repository.
- Create a branch for your feature (
git checkout -b feature/amazing-feature
). - Commit your changes (
git commit -m 'Add some amazing feature'
). - Push to the branch (
git push origin feature/amazing-feature
). - Open a pull request.
We welcome contributions from everyone and we are looking forward to your amazing contributions!
This project is licensed under the MIT License.
If you have any questions or want to reach out to the maintainer, please send an email to [email protected]
.