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
1
vote
1 answer

How to check if a fence key is registered for Awareness API?

I have 2 questions about Googles Awareness Fences API: Do we have a method to check if a fence with a given fence key is registered? What will happen if I accidentally register 2 fences with the same fence key ?
DrkStr
  • 1,752
  • 5
  • 38
  • 90
1
vote
0 answers

Saving AwarenessFence into database

In my Android app I use Fence API from Awareness Fence, and all works as expected. However, I need to reset the fence when the device reboots. For this purpose I have built a BroadcastReceiver on device boot. My problem is: how can I save the…
Ernestina Juan
  • 957
  • 1
  • 9
  • 24
1
vote
1 answer

Updating location fences in Android takes too long with large amount of fences

I am using the awareness API on Android to receive a broadcast when the user enters a specific area. When I developed this functionality by the first time, I had about 500 locations and it worked fine. However, I have now more than 3000 locations,…
Nicolás Arias
  • 1,053
  • 1
  • 12
  • 29
1
vote
2 answers

Remove or unregister the fence in broadcast receiver

I am using the Awareness API and have created a fence like this: AwarenessFence activityFence = DetectedActivityFence.during(DetectedActivityFence.STILL); AwarenessFence headphoneFence =…
div
  • 1,475
  • 3
  • 22
  • 32
1
vote
2 answers

How to get weather info with Google Awareness API?

I have an activity with one button that I want to use to give me some weather info inside the same activity (that I display with some textView under the button...). I have something like this: ______________________ | give me weather info | …
1
vote
1 answer

Awareness API global receiver intent filter

i am implementing the google Awareness API in an android app, but none of the samples, nor the guides, shows how to listen to the api events while the app is down or in the background. I wrote a global receiver based on the answer here
1
vote
1 answer

Cannot find Google Awareness API

Following a guide from the official documentation, I have attempted to add the Awareness APIs as a dependency of my application using the following statement: compile "com.google.android.gms:play-services-contextmanager:9.6.1" However, it doesn't…
user6947530
1
vote
2 answers

Fences not registering - google awareness API

I am currently registering a location fence on my application, similar to how it is explained on the documentation. Using logs, I can see the registering callback and the broadcast receiver are being correctly called. However, if I re-run the…
Nicolás Arias
  • 1,053
  • 1
  • 12
  • 29
1
vote
1 answer

Awareness Snapshot APi not working for android

I want to be able to get the current location and activity in my Android app. I implemented it, but it seems it never return anything. When I debug it never calls OnResult method. It just returns nothing. For example in below code it should be…
1
vote
3 answers

Gradle error while importing play-services-contextmanager

While cloning Aware repo in my Android Studio, synced gradle and I got below message: Failed to sync Gradle project 'app' Error:Could not find com.google.android.gms:play-services-contextmanager:9.2.0. Required by: …
pRaNaY
  • 24,642
  • 24
  • 96
  • 146
1
vote
0 answers

Why Google Awareness Fence doesn't work on a Samsung device?

When i try track a start walking or a stoping walking in a Samsung device, the Awareness doesn't recognise and doesn't update the current state. Activity: public class MainActivity extends AppCompatActivity implements…
1
vote
1 answer

Awareness API always returning cloudy weather

I want to be able to check the weather in my Android app. I implemented it, but it seems to always be returning conditions: [2] and nothing else, despite the fact it has been raining for almost an hour now here. Here's what it's…
user2322082
  • 658
  • 1
  • 6
  • 18
1
vote
0 answers

Awareness.SnapshotApi.getPlaces return placeResult with null Likelihoods

Awareness.SnapshotApi.getPlaces return placeResult with status Successful and null likelihoods. Google Maps shows that i'm in specific place. Any ideas?
ayushindin
  • 111
  • 6
0
votes
0 answers

Android Awareness API: Error 15 - Timeout when using Snapshot API to get User Activity

I am using the snapshot API in a master thesis project to check if next user actions could be predicted based on meta-data like the user's activity. However, when requesting user activity from the google awareness/snapshot API, I normaly get "error…
0
votes
0 answers

Timeout error occurs when calling detectedActivity of awareness API on os13

com.google.android.gms:play-services-awareness:19.0.1 Android OS 10,13 Timeout error in os13 when calling detectedActivity() of awareness API. There is no problem on os9, but it is happening on os13. com.google.android.gms.common.api.ApiException:…
byeongyeol
  • 11
  • 2