1 <html> 2 <!-- 3 /* 4 * Copyright (C) 2012 The Android Open Source Project 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 7 * use this file except in compliance with the License. You may obtain a copy of 8 * the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 14 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 15 * License for the specific language governing permissions and limitations under 16 * the License. 17 */ 18 --> 19 <head> 20 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 21 <style type="text/css"> 22 body { color: white; background-color: black } 23 a:link { color: #33B5E5; /*blue*/ } 24 a:visited { color: #99CC00; /*green*/ } 25 a:hover { color: #FFBB33; /*yellow*/; } 26 </style> 27 </head> 28 <body> 29 <hr/> 30 <b>SdkController</b> is used to send sensor data from an actual device to an emulator. <p/> 31 To use it, do the following: <br/> 32 <ol> 33 <li>Connect your device to your computer via USB. Make sure to enable <i>USB Debugging</i> in <i>Settings > Developer Options</i>. </li> 34 <li>Start this application on your device. </li> 35 <li>On the computer in a shell, run: <br/><i>adb forward tcp:1970 localabstract:android.sdk.controller</i> </li> 36 <li>Finally <b>run an emulator</b> with an AVD targetting <b>API 15</b>. 37 Multi-touch emulation must be explicitly enabled in emulator either by setting "Touch screen type" property to "multi-touch" in AVD Manager, 38 or by starting the emulator with "-screen multi-touch" option.</li> 39 </ol> 40 <a href="https://sites.google.com/a/android.com/tools/recent/sensoremulation">Read more.</a> 41 </body> 42 </html> 43