/android-examples

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

Primary LanguageJavaApache License 2.0Apache-2.0

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

Example apps

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

    • 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!

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 ☕

  • PayPal
  • Bitcoin Address: 13PjuJcfVW2Ad81fawqwLtku4bZLv1AxCL

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.