:shipit: [Examples] Simple basic isolated apps, for budding android devs.
Switch branches/tags
Nothing to show
Clone or download
Permalink
Failed to load latest commit information.
.github added github issue and pr templates May 4, 2017
AccessingGoogleDrive updated: gradle wrapper to v4.8.1 Jun 28, 2018
ActivityLifecycle updated: gradle wrapper to v4.8.1 Jun 28, 2018
AnimatedGradientBackground updated: gradle wrapper to v4.8.1 Jun 28, 2018
AppShortcuts updated: gradle wrapper to v4.8.1 Jun 28, 2018
AudioRecording updated: gradle wrapper to v4.8.1 Jun 28, 2018
AutoCompleteTextview updated: gradle wrapper to v4.8.1 Jun 28, 2018
AutoInitLibrary updated: AutoInitLibrary example by implementing content provider and… Aug 19, 2018
BasicMVP updated: gradle wrapper to v4.8.1 Jun 28, 2018
BottomNavigationView updated: gradle wrapper to v4.8.1 Jun 28, 2018
BottomSheet updated: gradle wrapper to v4.8.1 Jun 28, 2018
BoundServices updated: gradle wrapper to v4.8.1 Jun 28, 2018
BroadcastReceiver updated: gradle wrapper to v4.8.1 Jun 28, 2018
BuildVariants updated: gradle wrapper to v4.8.1 Jun 28, 2018
BuilderPattern updated: gradle wrapper to v4.8.1 Jun 28, 2018
CallsAndSMS updated: gradle wrapper to v4.8.1 Jun 28, 2018
Camera2 updated: gradle wrapper to v4.8.1 Jun 28, 2018
ChangeThemeDuringRuntime updated: gradle wrapper to v4.8.1 Jun 28, 2018
CheckIfPhoneOrTablet updated: gradle wrapper to v4.8.1 Jun 28, 2018
CheckIfScreenLocked updated: gradle wrapper to v4.8.1 Jun 28, 2018
ChromeCustomTabs updated: gradle wrapper to v4.8.1 Jun 28, 2018
CollapsibleToolbar updated: gradle wrapper to v4.8.1 Jun 28, 2018
CompileOnly updated: gradle wrapper to v4.8.1 Jun 28, 2018
CustomBroadcastPermissions updated: gradle wrapper to v4.8.1 Jun 28, 2018
CustomOnboardingIntro updated: gradle wrapper to v4.8.1 Jun 28, 2018
CustomView updated: gradle wrapper to v4.8.1 Jun 28, 2018
DataBinding updated: gradle wrapper to v4.8.1 Jun 28, 2018
DebuggingWebViews updated: gradle wrapper to v4.8.1 Jun 28, 2018
DepsManagementViaBuildSrc updated: gradle wrapper to v4.8.1 Jun 28, 2018
Encryption updated: gradle wrapper to v4.8.1 Jun 28, 2018
ExtractingColorFromBitmap updated: gradle wrapper to v4.8.1 Jun 28, 2018
FingerprintAPI updated: gradle wrapper to v4.8.1 Jun 28, 2018
Firebase updated: gradle wrapper to v4.8.1 Jun 28, 2018
FirebaseCloudMessaging updated: gradle wrapper to v4.8.1 Jun 28, 2018
GCMNetworkManager updated: gradle wrapper to v4.8.1 Jun 28, 2018
GPSLocation updated: gradle wrapper to v4.8.1 Jun 28, 2018
GestureDetection updated: gradle wrapper to v4.8.1 Jun 28, 2018
GridView updated: gradle wrapper to v4.8.1 Jun 28, 2018
HeadlessFragment updated: gradle wrapper to v4.8.1 Jun 28, 2018
ImplementingEmoticons updated: gradle wrapper to v4.8.1 Jun 28, 2018
IntentService updated: gradle wrapper to v4.8.1 Jun 28, 2018
Intents updated: gradle wrapper to v4.8.1 Jun 28, 2018
InterProcessService updated: gradle wrapper to v4.8.1 Jun 28, 2018
JNI updated: gradle wrapper to v4.8.1 Jun 28, 2018
JUnitTests updated: gradle wrapper to v4.8.1 Jun 28, 2018
LifeCycleCompForLib updated: gradle wrapper to v4.8.1 Jun 28, 2018
ListView updated: gradle wrapper to v4.8.1 Jun 28, 2018
ListViewWithCustomAdapter updated: gradle wrapper to v4.8.1 Jun 28, 2018
LoadHtmlIntoWebview updated: gradle wrapper to v4.8.1 Jun 28, 2018
LocalBroadcastManager updated: gradle wrapper to v4.8.1 Jun 28, 2018
MobileVisionAPI2ReadBarCodes updated: gradle wrapper to v4.8.1 Jun 28, 2018
NavigationDrawer updated: gradle wrapper to v4.8.1 Jun 28, 2018
Notification updated: gradle wrapper to v4.8.1 Jun 28, 2018
OSSLicenseActivity updated: gradle wrapper to v4.8.1 Jun 28, 2018
ParallaxHeaderListview updated: gradle wrapper to v4.8.1 Jun 28, 2018
PopupMenu updated: gradle wrapper to v4.8.1 Jun 28, 2018
ProductFlavors updated: gradle wrapper to v4.8.1 Jun 28, 2018
QuickSettingsTile updated: gradle wrapper to v4.8.1 Jun 28, 2018
RadioButton updated: gradle wrapper to v4.8.1 Jun 28, 2018
RatingBar updated: gradle wrapper to v4.8.1 Jun 28, 2018
ReadJSONFile updated: gradle wrapper to v4.8.1 Jun 28, 2018
RecyclerView updated: gradle wrapper to v4.8.1 Jun 28, 2018
RuntimePermissions updated: gradle wrapper to v4.8.1 Jun 28, 2018
SQLite updated: gradle wrapper to v4.8.1 Jun 28, 2018
SearchView updated: gradle wrapper to v4.8.1 Jun 28, 2018
SearchViewInToolbar updated: gradle wrapper to v4.8.1 Jun 28, 2018
Service updated: gradle wrapper to v4.8.1 Jun 28, 2018
SharedElementTransitions updated: gradle wrapper to v4.8.1 Jun 28, 2018
SimulateClick updated: gradle wrapper to v4.8.1 Jun 28, 2018
SnackBar updated: gradle wrapper to v4.8.1 Jun 28, 2018
SnapHelper updated: gradle wrapper to v4.8.1 Jun 28, 2018
SpeechRecognition updated: gradle wrapper to v4.8.1 Jun 28, 2018
SplashScreen updated: gradle wrapper to v4.8.1 Jun 28, 2018
TabLayout updated: gradle wrapper to v4.8.1 Jun 28, 2018
TextToSpeech updated: gradle wrapper to v4.8.1 Jun 28, 2018
TranslucentStatusBar updated: gradle wrapper to v4.8.1 Jun 28, 2018
UnitTestingWithRoboelectric updated: gradle wrapper to v4.8.1 Jun 28, 2018
UsingAndroidArchComponents updated: gradle wrapper to v4.8.1 Jun 28, 2018
UsingAppintro updated: gradle wrapper to v4.8.1 Jun 28, 2018
UsingArcMenu updated: gradle wrapper to v4.8.1 Jun 28, 2018
UsingBottomNavigationBar updated: gradle wrapper to v4.8.1 Jun 28, 2018
UsingButterKnife updated: gradle wrapper to v4.8.1 Jun 28, 2018
UsingDBFlow updated: gradle wrapper to v4.8.1 Jun 28, 2018
UsingDagger2 updated: gradle wrapper to v4.8.1 Jun 28, 2018
UsingEasyGCMlib updated: gradle wrapper to v4.8.1 Jun 28, 2018
UsingFirebaseJobDispatcher updated: gradle wrapper to v4.8.1 Jun 28, 2018
UsingFontAwesomeLib updated: gradle wrapper to v4.8.1 Jun 28, 2018
UsingFragmentsForResponsiveLayout updated: gradle wrapper to v4.8.1 Jun 28, 2018
UsingKotlin updated: gradle wrapper to v4.8.1 Jun 28, 2018
UsingLitho updated: gradle wrapper to v4.8.1 Jun 28, 2018
UsingMPChartsLib updated: gradle wrapper to v4.8.1 Jun 28, 2018
UsingOpenNLP updated: gradle wrapper to v4.8.1 Jun 28, 2018
UsingParceler updated: gradle wrapper to v4.8.1 Jun 28, 2018
UsingPercentSupportLib updated: gradle wrapper to v4.8.1 Jun 28, 2018
UsingPocketSphinxForVoiceRecognition updated: gradle wrapper to v4.8.1 Jun 28, 2018
UsingProcessLifecycleOwnerForLibs updated: gradle wrapper to v4.8.1 Jun 28, 2018
UsingRealmDB updated: gradle wrapper to v4.8.1 Jun 28, 2018
UsingRetrofit2 updated: gradle wrapper to v4.8.1 Jun 28, 2018
UsingRobolectric updated: gradle wrapper to v4.8.1 Jun 28, 2018
UsingRoomORM updated: gradle wrapper to v4.8.1 Jun 28, 2018
UsingRxJava updated: gradle wrapper to v4.8.1 Jun 28, 2018
UsingRxJava2 updated: gradle wrapper to v4.8.1 Jun 28, 2018
UsingStetho updated: gradle wrapper to v4.8.1 Jun 28, 2018
UsingSugarORM updated: gradle wrapper to v4.8.1 Jun 28, 2018
UsingTimberLogger updated: gradle wrapper to v4.8.1 Jun 28, 2018
UsingltBeaconLib updated: gradle wrapper to v4.8.1 Jun 28, 2018
VectorDrawables updated: gradle wrapper to v4.8.1 Jun 28, 2018
ViewPager updated: gradle wrapper to v4.8.1 Jun 28, 2018
WebViewDialogueBox updated: gradle wrapper to v4.8.1 Jun 28, 2018
img added img_download Mar 6, 2017
.gitignore cleanup Jan 29, 2018
License.txt [+] added javadocs Jun 6, 2016
README.md added: AutoInitLibrary to readme index Aug 19, 2018
delete_build_folder.sh added delete all build folder bash script, updated img url in readme Aug 11, 2017
delete_old_gradle_dist.sh added: bash script to purge all old gradle dist accumulated in .gradl… Dec 5, 2017
dependencies.gradle updated: code cleanup and updated dependencies.gradle file Jun 28, 2018
update_gradle_wrapper.sh improved the update_gradle_wrapper script Nov 1, 2017

README.md

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