Environmental Measurement
com.borntotinker.intent.action.MEASURE
An open ended intent to collect information from the android phone’s surroundings.
This could be physical information such as spatial measurement, acoustic decibel levels, ambient light levels, vibration sprectrum data, etc.
Use
public void startEnvironmentalMeasurement(String type) { Intent intent = new Intent("com.borntotinker.intent.action.MEASURE"); intent.putExtra("android.intent.extra.measurement.TYPE", type); // String if (intent.resolveActivity(getPackageManager()) != null) { startActivityForResult(intent, REQUEST_CODE); } } @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == REQUEST_CODE && resultCode == RESULT_OK) { // handle result } }
Example intent filter
<activity ...> <intent-filter> <action android:name="com.borntotinker.intent.action.MEASURE" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity>
Apps Providing an Implementation
Search on Google Play, AppBrain, Amazon App store or similar (not yet available - please make this happen!)