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
- Create a folder
android-examples- Next download and add the
dependencies.gradleto thisandroid-examplesfolder- Now move the example app folder inside the
android-examplesfolderThe reason this is required because each single app uses
extvariables defined and referenced fromdependencies.gradlefile from the parent folder namelyandroid-examples.
- ActivityLifecycle download
- AnimatedGradientBackground download
- AudioRecording download
- AutoCompleteTextview download
- AutoInitLibrary download
- BasicMVP download
- BoundServices download
- BottomSheet download
- BottomNavigationView download
- BroadcastReceiver download
- BuilderPattern download
- BuildVariants download
- CallsAndSMS download
- Camera2 download
- ChangeThemeDuringRuntime download
- CheckIfPhoneOrTablet download
- CheckIfScreenLocked download
- ChromeCustomTabs download
- CollapsibleToolbar download
- CompileOnly download
- CustomBroadcastPermissions download
- CustomOnboardingIntro download
- CustomView download
- DataBinding download
- DebuggingWebViews download
- DepsManagementViaBuildSrc download
- Encryption download
- ExtractingColorFromBitmap download
- FingerprintAPI download
- Firebase download
- FirebaseCloudMessaging download
- GCMNetworkManager download
- GPSLocation download
- GestureDetection download
- GridView download
- HeadlessFragment download
- ImplementingEmoticons download
- IntentService download
- Intents download
- InterProcessService download
- JNI download
- JUnitTests download
- LifeCycleCompForLib download
- ListView download
- ListViewWithCustomAdapter download
- LoadHtmlIntoWebview download
- LocalBroadcastManager download
- MobileVisionAPI2ReadBarCodes download
- NavigationDrawer download
- Notification download
- OSSLicenseActivity download
- ParallaxHeaderListview download
- PopupMenu download
- ProductFlavors download
- QuickSettingsTile download
- RadioButton download
- RatingBar download
- ReadJSONFile download
- RecyclerView download
- RuntimePermissions download
- SQLite download
- SearchView download
- SearchViewInToolbar download
- Service download
- SharedElementTransitions download
- SimulateClick download
- SnackBar download
- SnapHelper download
- SpeechRecognition download
- SplashScreen download
- TabLayout download
- TextToSpeech download
- TranslucentStatusBar download
- UnitTestingWithRoboelectric download
- UsingAppintro download
- UsingArcMenu download
- UsingBottomNavigationBar download
- UsingButterKnife download
- UsingDBFlow download
- UsingDagger2 download
- UsingEasyGCMlib download
- UsingFragmentsForResponsiveLayout download
- UsingFirebaseJobDispatcher download
- UsingFontAwesomeLib download
- UsingKotlin download
- UsingLitho download
- UsingMPChartsLib download
- UsingOpenNLP download
- UsingParceler download
- UsingPercentSupportLib download
- UsingPocketSphinxForVoiceRecognition download
- UsingRealmDB download
- UsingRetrofit2 download
- UsingRobolectric download
- UsingRoomORM download
- UsingRxJava download
- UsingRxJava2 download
- UsingStetho download
- UsingSugarORM download
- UsingTimberLogger download
- UsingAltBeaconLib download
- VectorDrawables download
- ViewPager download
- WebViewDialogueBox download
- UsingEasyDeviceInfo download
- UsingSensey download
- UsingRecyclerViewHelper download
- UsingScreenshott download
- UsingStackedHorizontalProgressbar download
- UsingQREader download
- UsingPackageHunter download
- UsingAndroidUtils download
- UsingZentone download
- UsingOptimusHTTP download
- UsingShoutout download
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:
-
Match coding style (braces, spacing, etc.) This is best achieved using
Reformat Codefeature of Android StudioCMD+Option+Lon Mac andCTRL+ALT+Lon Linux + Windows . -
If its a feature, bugfix, or anything please only change code to what you specify.
-
Please keep PR titles easy to read and descriptive of changes, this will make them easier to merge :)
-
Pull requests must be made against
developbranch. Any other branch (unless specified by the maintainers) will get rejected. -
Check for existing issues first, before filing an issue.
-
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
extvariables as defined independencies.gradle, in yourbuild.gradlefiles 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.
-
-
Have fun!
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
zipfile, so disable Adblocker to get the correctzipfile.
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
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.