Awareness API helps developers make their apps contextually aware
If there is one word to describe the future of Android based on what we've seen at Google I/O so far, it would be "context." Google is working hard to make Android and Android apps understand where you are and what you are doing. An example we pointed out yesterday was when asking Google on a Friday night "What's playing?," the app returned movie times. On another night, Google might have figured that you were seeking television listings.
Google's developer website posted information about the Awareness API, which developers can use to make their apps contextually aware. There are seven different types of context including Time, Location, Place, Activity (walking, running or biking), Beacons, Headphones and Weather. With the Awreness API, an app could automatically open Spotify when the headphones are plugged in. The API also manages how it is affecting battery life and data usage. This way, the developer doesn't have to worry about writing such features into his/her app.
There are two APIs that are found in the Awareness API.
Fence API lets a developer's app respond to current situations and notes when a pair of context conditions are met. For example,a developer can request, "tell me whenever the user is walking and their headphones are plugged in." Once the two conditions are met, a callback is sent to the developer's app even if it is not open.
Snapshot API allows a developer's app to request contextual information from the API. The example given by Google is "give me the user's current location and the current weather conditions."
Think about a future where someone who takes a lot of photos with his phone, finds his/her camera automatically opening as soon as he/she gets outside. Meanwhile, someone in the same household with the same phone who isn't an avid photographer, might go outside only to see the camera app remain closed. It's called context, boys and girls. And if you're an Android user, get ready to see plenty of it in the future.
source:
GoogleDevelopers via
TechCrunch,
AndroidandMe
15 Comments
1. kiko007
Posts: 7521; Member since: Feb 17, 2016
posted on May 19, 2016, 11:43 PM 3
4. VZWuser76
Posts: 4974; Member since: Mar 04, 2010
posted on May 20, 2016, 12:05 AM 7
5. joey_sfb
Posts: 6794; Member since: Mar 29, 2012
posted on May 20, 2016, 1:32 AM 1
11. ibend
Posts: 6747; Member since: Sep 30, 2014
posted on May 20, 2016, 3:00 AM 0
2. byazatt
Posts: 316; Member since: Oct 26, 2012
posted on May 19, 2016, 11:52 PM 2
3. BradyCrack
Posts: 835; Member since: Dec 29, 2015
posted on May 20, 2016, 12:01 AM 3
7. TerryTerius unregistered
posted on May 20, 2016, 1:48 AM 0
6. techspace
Posts: 1037; Member since: Sep 03, 2012
posted on May 20, 2016, 1:34 AM 1
13. 444777
Posts: 399; Member since: May 02, 2016
posted on May 20, 2016, 4:42 AM 1
8. Gadgety
Posts: 173; Member since: Sep 03, 2012
posted on May 20, 2016, 2:11 AM 0
9. vijaysivakula
Posts: 229; Member since: Aug 17, 2011
posted on May 20, 2016, 2:14 AM 0
10. tacarat
Posts: 854; Member since: Apr 22, 2013
posted on May 20, 2016, 2:28 AM 0
14. Valdomero
Posts: 704; Member since: Nov 13, 2012
posted on May 20, 2016, 8:49 AM 0
15. tacarat
Posts: 854; Member since: Apr 22, 2013
posted on May 21, 2016, 7:03 PM 0
12. MrElectrifyer
Posts: 3960; Member since: Oct 21, 2014
posted on May 20, 2016, 3:05 AM 1
PhoneArena Comments Rules
A discussion is a place, where people can voice their opinion, no matter if it is positive, neutral or negative. However, when posting, one must stay true to the topic, and not just share some random thoughts, which are not directly related to the matter.
Things that are NOT allowed:
Moderation is done by humans. We try to be as objective as possible and moderate with zero bias. If you think a post should be moderated - please, report it.
Have a question about the rules or why you have been moderated/limited/banned? Please, contact us.
Comments Options
Report Post
Send a warning to post author
Send a warning to Selected user. The user has 0 warnings currently.
Ban user and delete all posts
Message to PhoneArena moderator (optional):