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.gradle
to thisandroid-examples
folder- Now move the example app folder inside the
android-examples
folderThe reason this is required because each single app uses
ext
variables defined and referenced fromdependencies.gradle
file from the parent folder namelyandroid-examples
.
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 Code
feature of Android Studio CMD
+Option
+L
on Mac and CTRL
+ ALT
+ L
on 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 develop
branch. 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 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.
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
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!
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
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.
Android Cookbook Examples This repo is among the largest collections of Android code samples anywhere; it containsaround a hundred and fifty compilable source code examples fromthe O’Reilly Android Co
JNI绑定 Android上的Java资源 WebView代码组织
Native.js for Android封装一条通过JS语法直接调用Native Java接口通道,通过plus.android可调用几乎所有的系统API。 方法: currentWebview: 获取当前Webview窗口对象的native层实例对象 newObject: 创建实例对象 getAttribute: 获取对象(类对象/实例对象)的属性值 setAttribute: 设置对象(类对
Android++ 是一个免费的 Visual Studio 扩展,用于支持在 Visual Studio 上开发和调试原生的 Android 应用,主要基于 NDK 的 C/C++ 应用。同时包括可订制的发布、资源管理以及集成了 Java 源码编译。
Android(安卓)是一种基于Linux内核的自由及开放源代码的操作系统,主要使用于移动设备,如智能手机和平板电脑,由美国谷歌公司和开放手机联盟领导及开发。Android操作系统最初由Andy Rubin开发,主要支持手机。2005年8月由谷歌收购注资。2007年11月,谷歌与84家硬件制造商、软件开发商及电信营运商组建开放手机联盟共同研发改良Android系统。随后谷歌以Apache许可证的授
Android(安卓)是一种基于Linux内核的自由及开放源代码的操作系统,主要使用于移动设备,如智能手机和平板电脑,由美国谷歌公司和开放手机联盟领导及开发。Android操作系统最初由Andy Rubin开发,主要支持手机。2005年8月由谷歌收购注资。2007年11月,谷歌与84家硬件制造商、软件开发商及电信营运商组建开放手机联盟共同研发改良Android系统。随后谷歌以Apache许可证的授