Download Latest Version LibraryTest.apk (23.5 kB)
Email in envelope

Get an email when there's a new version of Environment State Virtual Sensor

Home
Name Modified Size InfoDownloads / Week
LibraryTest.zip 2013-11-17 95.6 kB
README 2011-07-19 1.2 kB
LibraryTest.apk 2011-07-19 23.5 kB
LibState.zip 2011-07-12 12.8 kB
Totals: 4 Items   133.0 kB 0
Environment State Virtual Sensor


The Environment State Virtual Sensors for Android is a library 
that allows recognition of environmental scenarios in which an 
Android device can be found. The basic scenarios types are: 
Motion states, Noise states, Proximity state, ringer-mode state.

Compressed jar version of the library can be downloaded at sourceforge.net .

Project made in collaboration with ISISLab

To work with this library:
1) implement the StateCollection interface
2) create the obj AccelState
3) invoke the accelState start method
4) start a temporization thread, at least 3 secs to have a reasonable states prediction
5) invoke getState() method, on the obj AccelState, in the thread created
6) invoke stop(), on the obj AccelState, to stop the library service

Avaible for download an application that tests the library, showing calculated state.
After install on your phone, run it, and press the start button.
This application will show you a string, divided into four states.
The fist state shows Motion states, the second shows proximity state, third noise state, 
and fourth ringermode state.
new version: FIXED proximity sensor bug
Source: README, updated 2011-07-19