Questions tagged [google-awareness]

A unified sensing platform enabling applications to be aware of multiple aspects of a users context, while managing battery and memory health.

Google's Awareness API unifies 7 location and context signals in a single API, enabling you to create powerful context-based features with minimal impact on system resources. Combine optimally processed context signals in new ways that were not previously possible, while letting the API manage system resources so your app doesn't have to.

76 questions
3
votes
1 answer

TimeFence.inInterval in Awareness API not working

I am using this to set up a time fence: ArrayList awarenessFences = new ArrayList
div
  • 1,475
  • 3
  • 22
  • 32
3
votes
1 answer

Google Awareness API v9.6 is missing

I'm interested in new maps styling feature, which is added in 9.6 Google Play Services release, but also I'm using Awareness API. In my build.gradle I have compile 'com.google.android.gms:play-services-maps:9.6.1' compile…
Dmytro Rostopira
  • 10,588
  • 4
  • 64
  • 86
3
votes
1 answer

android disable wifi when user leaves home

I've searched all around for something that will do a simple action : disable wifi when user leaves home, and enable wifi when arriving home. I want to do so, since it could potentially save me battery usage from searching wifi network when i'm…
3
votes
1 answer

Google Awareness API with Beacons MAC

I have some custom beacons for communicating via Bluetooth LE. Currently I am performing an LE-scan and check if the MAC-address of any found BLE-device is one of mine. I would like to use Google Awareness Fence API to get triggered, if one of my…
Christopher
  • 9,682
  • 7
  • 47
  • 76
3
votes
5 answers

Which dependency is required for Awareness API?

I want to check out the new Awareness API which is quite new. I’m using Play Services 9.0.2. The documentation has this example: GoogleApiClient client = new GoogleApiClient.Builder(context) .addApi(Awareness.API) …
rekire
  • 47,260
  • 30
  • 167
  • 264
3
votes
2 answers

Google Play Services 9.2.0 Selective Compile Awareness API

I'm trying to use the new Awareness API in an app but the only way that I can include it in my code is by using compile 'com.google.android.gms:play-services:9.2.0' in my gradle file. I tried using compile…
joaomgcd
  • 5,287
  • 4
  • 28
  • 39
2
votes
0 answers

What is the meaning of "status code = 7508" on Google Awareness API?

I implemented Google Awareness API on my application. All the features of Awareness api except getPlace are working. But nearby places features doesn't work. I get the status code 7508. There is no information about that specific code and it's also…
2
votes
1 answer

Google Awareness API Places with com.google.android.gms.common.api.ApiException: 7508

I unsuccessfully try to solve my Google Awareness Api Exception Problem for days now. I do have implemented a Awareness Snapshot Client to resolve the current POI nearby for my context collection application. But unfortunately I always get the…
free100
  • 21
  • 1
2
votes
0 answers

Does using the Fence API in the Background require a Foreground Service in Android P

With Android P, apps running in the background will no longer receive sensor updates. One way around this will be using a Foreground Service. According to this Limited access to sensors in background Android P limits the ability for background apps…
Syzygy
  • 578
  • 7
  • 27
2
votes
1 answer

Android Things - can't use Awareness API

I have the same code with a lower version (9.4.0) working on the phone but for some reason it won't work on RPi3? My build.gradle compile 'com.google.android.gms:play-services:10.0.0' provided…
2
votes
2 answers

Android Awareness API multiple fence registration

I am trying to register multiple location fences using Androids awareness API over multiple sessions. But every time I register a new location fence, it seems to drop my old location fences and not trigger them any more. String uniqueId =…
2
votes
0 answers

Android Awareness Snapshot API from IntentService got error 7503

I got an IntentService that's work is to update the Weather data from Google Awareness API, and pass it back to the Wear companion. I got the API key, got location rights, and also everything works when the code called from a simple Activity. (in my…
Totoo
  • 139
  • 11
2
votes
2 answers

Activity Fence not working in Awareness API

I tried implementing the Activity Fence using the Google Awareness API. But changes in the user's activity are not getting detected. The headphone fence works as expected though. ActivityFenceActivity public class ActivityFenceActivity extends…
Subhrajyoti Sen
  • 1,525
  • 14
  • 18
2
votes
1 answer

Getting Beacon Fence Using Awareness API it's take too much time and not accurate

This is my code for getting BeaconFence.It's take too much time and not provide accurate information i fetch two fence lost and found //BeaconFenceActivity.java import android.Manifest; import android.app.PendingIntent; import…
2
votes
1 answer

What is the best way to test Awareness Api Accuracy?

I'm using Awareness API, and wondering, what is the best way to test is during development, on a device (not an emulator)? I want to emulate to test its accuracy location / activity / weather changes for example. How can I achieve…
MayaB
  • 179
  • 1
  • 1
  • 10