Skip to content

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

License

Notifications You must be signed in to change notification settings

ali-zareshai/android-examples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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. ActivityLifecycle download
  2. AnimatedGradientBackground download
  3. AudioRecording download
  4. AutoCompleteTextview download
  5. AutoInitLibrary download
  6. BasicMVP download
  7. BoundServices download
  8. BottomSheet download
  9. BottomNavigationView download
  10. BroadcastReceiver download
  11. BuilderPattern download
  12. BuildVariants download
  13. CallsAndSMS download
  14. Camera2 download
  15. ChangeThemeDuringRuntime download
  16. CheckIfPhoneOrTablet download
  17. CheckIfScreenLocked download
  18. ChromeCustomTabs download
  19. CleanProject download
  20. CollapsibleToolbar download
  21. CommonConfigForModules download
  22. CompileOnly download
  23. CustomBroadcastPermissions download
  24. CustomOnboardingIntro download
  25. CustomView download
  26. DataBinding download
  27. DebuggingWebViews download
  28. DepsManagementViaBuildSrc download
  29. Encryption download
  30. ExtractingColorFromBitmap download
  31. FingerprintAPI download
  32. Firebase download
  33. FirebaseCloudMessaging download
  34. GCMNetworkManager download
  35. GPSLocation download
  36. GestureDetection download
  37. GridView download
  38. HeadlessFragment download
  39. ImplementingEmoticons download
  40. IntentService download
  41. Intents download
  42. InterProcessService download
  43. JNI download
  44. JUnitTests download
  45. LifeCycleCompForLib download
  46. ListView download
  47. ListViewWithCustomAdapter download
  48. LoadHtmlIntoWebview download
  49. LocalBroadcastManager download
  50. MobileVisionAPI2ReadBarCodes download
  51. NavigationDrawer download
  52. Notification download
  53. OSSLicenseActivity download
  54. ParallaxHeaderListview download
  55. PopupMenu download
  56. ProductFlavors download
  57. QuickSettingsTile download
  58. RadioButton download
  59. RatingBar download
  60. ReadJSONFile download
  61. RecyclerView download
  62. RuntimePermissions download
  63. SQLite download
  64. SearchView download
  65. SearchViewInToolbar download
  66. Service download
  67. SharedElementTransitions download
  68. SimulateClick download
  69. SnackBar download
  70. SnapHelper download
  71. SpeechRecognition download
  72. SplashScreen download
  73. SplitSigninConfig download
  74. TabLayout download
  75. TextToSpeech download
  76. TranslucentStatusBar download
  77. UnitTestingWithRoboelectric download
  78. UsingAppintro download
  79. UsingArcMenu download
  80. UsingBottomNavigationBar download
  81. UsingButterKnife download
  82. UsingDBFlow download
  83. UsingDagger2 download
  84. UsingEasyGCMlib download
  85. UsingFragmentsForResponsiveLayout download
  86. UsingFirebaseJobDispatcher download
  87. UsingFontAwesomeLib download
  88. UsingKotlin download
  89. UsingLitho download
  90. UsingMPChartsLib download
  91. UsingOpenNLP download
  92. UsingParceler download
  93. UsingParcelize download
  94. UsingPercentSupportLib download
  95. UsingPocketSphinxForVoiceRecognition download
  96. UsingRealmDB download
  97. UsingRetrofit2 download
  98. UsingRobolectric download
  99. UsingRoomORM download
  100. UsingRxJava download
  101. UsingRxJava2 download
  102. UsingStetho download
  103. UsingSugarORM download
  104. UsingTimberLogger download
  105. UsingAltBeaconLib download
  106. VectorDrawables download
  107. ViewPager download
  108. WebViewDialogueBox download

Example apps from my android libraries

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

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.sample.* 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 here

Extra

Since the repo is pretty large now , I am sure a lot of you guys would like to download only some of the projects. To tackle that I came across this cool tool - Gitzip (All credits to the author, really cool work). To download a specific project

  • Navigate to the specific project you want to download and copy the path from address bar.

    i.e https://github.com/nisrulz/android-examples/tree/master/ActivityLifecycle

  • Next goto Gitzip

  • Paste the path into the provided box and hit Download.

  • Done now load the project into Android Studio as you would normally.

P.S. : I saw if you use Adblocker then Gitzip downloads an empty zip file, so disable Adblocker to get the correct zip file.

Created & Maintained By

Nishant Srivastava (@nisrulz)

If you found these examples helpful or you learned something from their source code and want to thank me, consider buying me a cup of ☕

License

Copyright 2016 Nishant Srivastava

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 43.2%
  • C++ 19.1%
  • CMake 17.8%
  • Python 16.0%
  • Kotlin 1.9%
  • C 1.6%
  • Other 0.4%