Skip to content
This repository has been archived by the owner on Oct 4, 2019. It is now read-only.

Commit

Permalink
Auto-update
Browse files Browse the repository at this point in the history
  • Loading branch information
google-automerger committed Dec 5, 2014
1 parent ee66d47 commit 017c03b
Show file tree
Hide file tree
Showing 7 changed files with 98 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .google/packaging.yaml
Expand Up @@ -5,8 +5,12 @@
---
status: PUBLISHED
technologies: [Android]
categories: [Wearable]
categories: [Wearable, Sensors]
languages: [Java]
solutions: [Mobile]
github: android-Geofencing
level: ADVANCED
icon: screenshots/icon-web.png
apiRefs:
- android:com.google.android.gms.location.Geofence
license: apache2
3 changes: 3 additions & 0 deletions Application/build.gradle
Expand Up @@ -13,6 +13,7 @@ apply plugin: 'com.android.application'

dependencies {

compile "com.google.android.gms:play-services-location:6.5.+"

compile 'com.google.android.gms:play-services-wearable:6.5.+'
compile 'com.android.support:support-v13:21.0.+'
Expand All @@ -35,6 +36,8 @@ android {
defaultConfig {
minSdkVersion 18
targetSdkVersion 21
versionCode 1
versionName "1.0"
}

sourceSets {
Expand Down
35 changes: 35 additions & 0 deletions CONTRIB.md
@@ -0,0 +1,35 @@
# How to become a contributor and submit your own code

## Contributor License Agreements

We'd love to accept your sample apps and patches! Before we can take them, we
have to jump a couple of legal hurdles.

Please fill out either the individual or corporate Contributor License Agreement (CLA).

* If you are an individual writing original source code and you're sure you
own the intellectual property, then you'll need to sign an [individual CLA]
(https://developers.google.com/open-source/cla/individual).
* If you work for a company that wants to allow you to contribute your work,
then you'll need to sign a [corporate CLA]
(https://developers.google.com/open-source/cla/corporate).

Follow either of the two links above to access the appropriate CLA and
instructions for how to sign and return it. Once we receive it, we'll be able to
accept your pull requests.

## Contributing A Patch

1. Submit an issue describing your proposed change to the repo in question.
1. The repo owner will respond to your issue promptly.
1. If your proposed change is accepted, and you haven't already done so, sign a
Contributor License Agreement (see details above).
1. Fork the desired repo, develop and test your code changes.
1. Ensure that your code adheres to the existing style in the sample to which
you are contributing. Refer to the
[Android Code Style Guide]
(https://source.android.com/source/code-style.html) for the
recommended coding standards for this organization.
1. Ensure that your code has an appropriate set of unit tests which all pass.
1. Submit a pull request.

15 changes: 15 additions & 0 deletions NOTICE
@@ -0,0 +1,15 @@
This sample uses the following software:

Copyright 2014 The Android Open Source Project

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.
39 changes: 35 additions & 4 deletions README.md
@@ -1,10 +1,36 @@
Android Geofencing Sample
===================================

When a user enters the vicinity of the Android building (B44) or the Yerba Buena
Gardens near the Moscone center in San Francisco, a notification silently appears on his/her
wearable with an option to check in. This notification automatically disappears when he/she leaves
the area, and reappears the next time he/she is at one of these locations.
When the user enters the vicinity of the Android building (B44) or the Yerba Buena
Gardens near the Moscone center in San Francisco, a notification silently appears on their
wearable with an option to check in. This notification automatically disappears when they leave
the area, and reappears the next time they are at one of these locations.

Introduction
------------

Geofencing combines awareness of the user's current location with awareness of
nearby features, defined as the user's proximity to locations that may be of
interest. To mark a location of interest, you specify its latitude and longitude.
To adjust the proximity for the location, you add a radius. The latitude,
longitude, and radius define a geofence. You can have multiple active
geofences at one time.

To use geofencing, start by defining the geofences you want to monitor.
Although you usually store geofence data in a local database or download
it from the network, you need to send a geofence to Location Services as
an instance of [Geofence][2], which you create with `Geofence.Builder`. Each
Geofence object contains the following information:

1. Latitude, longitude, and radius
2. Expiration time
3. Transition type
4. Geofence ID

Read more about geofences in [Creating and Monitoring Geofences][1].

[1]:http://developer.android.com/training/location/geofencing.html
[2]:http://developer.android.com/reference/com/google/android/gms/location/Geofence.html

Pre-requisites
--------------
Expand All @@ -13,6 +39,11 @@ Pre-requisites
- Android Build Tools v21.1.1
- Android Support Repository

Screenshots
-------------

<img src="screenshots/android_building_check_in.png" height="400" alt="Screenshot"/>

Getting Started
---------------

Expand Down
5 changes: 5 additions & 0 deletions Wearable/build.gradle
Expand Up @@ -33,6 +33,11 @@ android {

buildToolsVersion "21.1.1"

defaultConfig {
versionCode 1
versionName "1.0"
}

buildTypes {
release {
minifyEnabled false
Expand Down
Binary file added screenshots/icon-web.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 017c03b

Please sign in to comment.