Android apps will be aware of your surroundings in the future, and will respond accordingly
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.
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."
source: GoogleDevelopers via TechCrunch, AndroidandMe
Things that are NOT allowed: