Daniel 'MaTachi' Jonsson

Tag Archives: Android SDK

Sensor Simulator to Android SDK – Simulate Accelerometer, Magnetic Field, Orientation, etc.

Sensor Simulator

I found and installed a really neat application to the Android SDK and pc. It’s called Sensor Simulator and is used to simulate the different sensors that can be found in Android phones, like the accelerometer, magnetic field sensor and the orientation sensor. I got this application working after that I managed to get the adb command in the terminal to work. Because it consists of two apps, one that you install on your virtual phone and one java app that you run on your computer. So it’s kinda useless if you aren’t able to install apps on your virtual phone from the computer. By the way, click on the image above to open it in a new window/tab to see it in the native resolution, in which you are actually able to read the text.

If you are interested, check out the links below. :)

Links:

How to get the android and adb commands to work in Ubuntu terminal (Android SDK)

At first, the commands android and adb didn’t work in my Ubuntu terminal. But what I did to get them to work was modifying the .bashrc file in my home folder. It’s hidden so I showed it with Ctrl + H. In the file i edited the PATH lines to this:

#AndroidDev PATH
export PATH=$PATH:/home/teraspes/android-sdk-linux_x86
export PATH=$PATH:/home/teraspes/android-sdk-linux_x86/platform-tools
export PATH=$PATH:/home/teraspes/android-sdk-linux_x86/tools

I can’t really recall what they were from the start, and I don’t know if all lines are needed. But as long as the commands work I won’t touch the lines, because I will just mess something up and end up with trying to fix it four hours.

If it still doesn’t work for you after this change, try to restart your computer.