blob: db4f0ad52bc200302757228281c6a63e166cc85f [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2016 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<sample>
<name>AccelerometerPlay</name>
<group>Sensors</group>
<package>com.example.android.accelerometerplay</package>
<!-- change minSdk if needed-->
<minSdk>11</minSdk>
<strings>
<intro>
<![CDATA[
<p>This sample demonstrates how to use an accelerometer sensor as input for
a physics-based view. The input from the accelerometer is used to simulate a
virtual surface, and a number of free-moving objects placed on top of it.</p>
<p>Any effects from the device's acceleration vector (including both gravity and
temporary movement) will be translated to the on-screen particles.</p>
]]>
</intro>
</strings>
<template src="base-build"/>
<metadata>
<status>PUBLISHED</status>
<categories>Sensors</categories>
<technologies>Android</technologies>
<languages>Java</languages>
<solutions>Mobile</solutions>
<level>ADVANCED</level>
<icon>screenshots/big_icon.png</icon>
<screenshots>
<img>screenshots/screenshot1.png</img>
</screenshots>
<api_refs>
<android>android.hardware.Sensor</android>
<android>android.hardware.SensorEvent</android>
<android>android.hardware.SensorEventListener</android>
<android>android.hardware.SensorManager</android>
</api_refs>
<description>
<![CDATA[
Sample demonstrating how to use an accelerometer sensor as input for a physics-based view.
]]>
</description>
<intro>
<![CDATA[
This sample demonstrates how to use an accelerometer [sensor][1] as input for
a physics-based view. The input from the accelerometer is used to simulate a
virtual surface, and a number of free-moving objects placed on top of it.
<p>Any effects from the device's acceleration vector (including both gravity and
temporary movement) will be translated to the on-screen particles.
[1]: https://developer.android.com/reference/android/hardware/Sensor.html
]]>
</intro>
</metadata>
</sample>