ThingWorx Edge Android SDK > Using the Sample Applications > Building and Running the Steam Sensor Example
  
Building and Running the Steam Sensor Example
To build and run the Steam Sensor example, follow these steps:
1. Start Android Studio and when the Welcome to Android Studio window opens, select Import project. Alternatively, if you already have a project open, select New... > Import project.
2. When prompted, select the android-steam-sensor directory, and then click Next.
3. Assuming that you are importing your first ThingWorx project, follow these steps in the Import Project screen:
a. If given the option to choose a Gradle distribution, choose to use the gradlew command that is provided with the ThingWorx Android SDK.
b. Leave the default setting for Project format (.idea).
c. Click Finish.
4. During this process, you may be asked to install or choose an Android SDK version. This project targets the Android SDK 4.4.2, also called API 19. The project should import cleanly and be ready to use.
5. In ThingWorx Composer, import the Entity file, samples/android-steam-thing/entity/Things_SteamSensor1.xml. As a result, you should be able to find the SteamSensor1 thing in Composer. This application updates this thing.
6. In Android Studio, select Run > android-steam-thing to start the application.
7. In the application, choose the Launch Emulator option and click the ellipsis button (...).
8. Select the Create Virtual Device button on the bottom of the next window.
9. If you have an Android device, you should attach it to your system using a USB cable and consult your vendor's documentation on placing that device in "Developer Mode". Otherwise, you can create a simulated Android device.
If given the option, choose an x86 device over an ARM device to get better performance, If you do not have any x86 choices, consider clicking the Show downloadable images button to find one. The Steam Sensor application should start in the simulator.
10. If the application is starting for the first time, the settings page appears. You must provide the following information:
A URI of the form ws://hostname:8080/Thingworx/WS for HTTP access.
A URI of the form wss://hostname:443/Thingworx/WS for HTTPS access.
An Application Key (appKey) that has been generated on your ThingWorx platform in the Application Keys section of ThingWorx Composer.
* 
You can also build the sample applications from the command line, as explained in Building an Example Project from the Command Line.