Coder Social home page Coder Social logo

nisrulz / android-examples Goto Github PK

View Code? Open in Web Editor NEW
1.7K 94.0 659.0 89.87 MB

:shipit: [Examples] Simple basic isolated apps, for budding android devs.

License: Apache License 2.0

Java 40.39% C 0.03% HTML 0.03% Shell 1.12% Kotlin 27.70% CMake 0.03% Python 30.70%
android android-studio examples basic apps

android-examples's Introduction

Android Examples

Image

Featured in

AndroidDev Digest

Show some ❤️ and star the repo to support the project

GitHub stars GitHub forks GitHub watchers GitHub followers
Twitter Follow

Main repository containing all the example apps demonstrating features/functionality/integrations in android application development

NOTE: If you are going to download just a single example app (using the download link), make sure you follow the below procedure

  1. Create a folder android-examples
  2. Next download and add the dependencies.gradle to this android-examples folder
  3. Now move the example app folder inside the android-examples folder

The reason this is required because each single app uses ext variables defined and referenced from dependencies.gradle file from the parent folder namely android-examples.

Example apps

  1. Custom Drawer
  2. DropDown Button
  3. Enable Splash Screen
  4. Firebase Analytics Integration
  5. Firebase Crashlytics Integration
  6. Google Signin
  7. Grid Layout
  8. Image Editor
  9. Image from Network
  10. Infinite List
  11. Load local image
  12. Load local json
  13. Navigation Drawer
  14. Persist Key Value
  15. Push Notifications
  16. Simple Material App
  17. Sliver App Bar
  18. Stateful Widget
  19. Stateless counter app
  20. Stateless Widgets
  21. Todo list using Provider
  22. Unit Testing
  23. Using Alert Dialog
  24. Using Bottom Navigation Bar
  25. Using Bottom Sheet
  26. Using Custom Fonts
  27. Using EditText
  28. Using Gradient
  29. Using HTTP GET
  30. Using InteractiveViewer
  31. Using Listview
  32. Using ListwheelScrollView
  33. Using SnackBar
  34. Using Stepper
  35. Using Tabs
  36. Using Theme
  37. View PDF File

Example apps from my android libraries

  1. UsingAndroidUtils
  2. UsingEasyDeviceInfo
  3. UsingOptimusHTTP
  4. UsingPackageHunter
  5. UsingQREader
  6. UsingRecyclerViewHelper
  7. UsingScreenshott
  8. UsingSensey
  9. UsingShoutout
  10. UsingStackedHorizontalProgressbar
  11. UsingZentone

Pull Requests

I welcome and encourage all pull requests. It usually will take me within 24-48 hours to respond to any issue or request. Here are some basic rules to follow to ensure timely addition of your request:

  1. Match coding style (braces, spacing, etc.) This is best achieved using Reformat Code feature of Android Studio CMD+Option+L on Mac and CTRL + ALT + L on Linux + Windows .

  2. If its a feature, bugfix, or anything please only change code to what you specify.

  3. Please keep PR titles easy to read and descriptive of changes, this will make them easier to merge :)

  4. Pull requests must be made against develop branch. Any other branch (unless specified by the maintainers) will get rejected.

  5. Check for existing issues first, before filing an issue.

  6. Make sure you follow the set standard as all other projects in this repo do

    • Upgrade your gradle wrapper to the one all other apps are using. Use the below command at root of your project

      ./gradlew wrapper --gradle-version <version_name>

      i.e ./gradlew wrapper --gradle-version 6.0.1

    • Use ext variables as defined in dependencies.gradle, in your build.gradle files to make sure all apps are in sync with configurations and dependencies. Take a look here and here

    • Use the package name of the format github.nisrulz.* where * is the example you are adding to the repo. I am trying to follow a set standard in the repo, please adhere to that.

  7. Have fun!

NOTE: There is a quick bootstrapping cookiecutter template to create an Android example project that adheres to all wiring up and standards for this repo. Read how to use use it from links below:

Extra

Since the repo is pretty large now , I am sure many folks would like to download only some of the projects. To tackle that follow the steps below:

  • Install svn using homebrew (mac/linux)

    brew install svn
  • Copy the name of the example folder in this repo i.e AccessingGoogleDrive

  • Next replace example_folder in the below command:

    svn checkout https://github.com/nisrulz/android-examples/trunk/example_folder

    i.e Consider AccessingGoogleDrive is the name of the example's folder, the command becomes:

    svn checkout https://github.com/nisrulz/android-examples/trunk/AccessingGoogleDrive
  • Done! You should have the specific example all checked out!

Author & support

This project was created by Nishant Srivastava but hopefully developed and maintained by many others. See the the list of contributors here.

If you appreciate my work, consider buying me a cup of ☕ to keep me recharged 🤘 [PayPal]

License

Apache Version 2.0 | Copyright 2016 Nishant Srivastava

android-examples's People

Contributors

anandwana001 avatar behindthemath avatar lokeshsaini94 avatar nisrulz avatar sagarchoudhary96 avatar way2jatin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-examples's Issues

[New Examples] List of new Android Examples

This is a list of future Android examples to add to this repo. If you want to contribute one of these examples, simply create a new issue. This issue is used to keep track of example list to work on only.

CI Systen

  • Bitrise CI Local Config
  • Circle CI
  • Using Github Actions

Architecture

  • Clean Architecture
  • MVI
  • MVP
  • MVVM

Form Factors

  • Android Auto
  • Foldable
  • TV

Misc

  • Animation
  • Jetpack Benchmark
  • Jetpack Download Manager
  • Jetpack Security
  • Jetpack Navigation
  • Media Playback
  • Paging 3
  • Runtime Permission
  • Handling File System
  • Slices
  • Testing
  • Workmanager
  • Kotlin Coroutines
  • Kotlin Native
  • Using Bazel Build System
  • Using Spotless
  • Using Protobuf
  • Using Moshi
  • Using Kotlin Serialization
  • Using Ktor

Missing Unit Tests

It would make repository perfect if there are unit (and Espresso) test for examples. That would make it complete.

📖 Guest Book 🙇🏻‍♂️

This "issue" serves as a guest book. You're welcome to write nice things about this project, share how it's helped you out, learn something or solve a problem.

Idea came from this tweet.

Notification sound don't work

Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Notification sound don't work

Navigation Conditional example

Do you want to request a feature or report a bug?

A new feature: NavigationConditional

What is the current behavior?

If the current behavior is a bug, please provide the steps to reproduce.

Any logs, error output, bugreport etc?

What is the expected behavior?

I'm learning how to build android apps and NavigationConditional on official page: https://developer.android.com/guide/navigation/navigation-conditional, it's not really clear, and they don't have official github page for this example.

Any other comments?

What versions of software are you using?

Windows 10 and Android Studio Chipmunk

  • Device Information:

Any

  • Android Version:

v32

  • Configuration Information:

  • Misc:

Dependencies Problem while loading a single project

It's not a feature nor a bug a request to make documentation more clear.
You should point out that, if we are downloading a single project we also have to download the dependencies.gradle file and put it inside the parent folder of the project's folder or inside the project's folder and make a small change in project level build.gradle file

If you try to build a single project, for example, ActivityLifecycle toy app you will get a gradle error
Error:Could not read script '/home/astronaut/Downloads/dependencies.gradle' as it does not exist.

Screenshot

Request for an Example

Sir, Please bring us an example for an app on accessing and creating files on google drive.
Thanks!

Notification sample not working in Oreo

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
Trying out Notification sample on Oreo device and emulator, doesn't work but it works on Nougat

If the current behavior is a bug, please provide the steps to reproduce.

Any logs, error output, bugreport etc?

Failed to post notification in channel

What is the expected behavior?

Any other comments?

What versions of software are you using?

  • Device Information:
    Xioami Mi A1 Oreo and Emulator API 27, issues on both

  • Android Version:
    8.0

  • Configuration Information:

  • Misc:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.