Search This Blog

Sunday, 16 October 2011

How to emulate with sensors in android emulator

Actually many of the developers which are crazy to develop applications on sensors have to purchase the device which supports sensors like accelerometer and all that. But now the application has been built which supports your emulator to deal with the sensors.What you have to do is just to download the application download.
and follow the steps given below.
  1. Start bin/sensorsimulator-x.x.x.jar (Java standalone application). 
  2. Install bin/SensorSimulatorSettings-x.x.x.apk on your Android emulator.  
  3. Launch SensorSimulator on the emulator.
  4. Enter IP address and socket (port) number into the emulator as shown

  1. Go to Sensors Tab in the java simulator and choose the sensors you want to enable.  
  2. Press Connect on the emulator (second tab of the settings activity). 
  3. Now you should see the sensor data (see below). With a small delay, they are in sync with the SensorSimulator numbers. 
  4. Try moving the SensorSimulator phone around with the mouse: The numbers will change in the SensorSimulator and on the Android phone. 
Note 2: To change the enabled sensors, you have to disconnect and reconnect from the settings activity. 

Now the above is the snapshot of all the work to be done in the android emulator.
In this way we connect the sensors emulator with  the android emulator.In the next post I will tell you about how to add this sensor simulator with your application.If you have any queries regarding this post then please comment or query.!!!!!!!!!!!!!!

No comments:

Post a Comment