Testing Out the Android Client

Time to test out the application on a real X10 light switch. Assuming the Rails-based X10 web application is working as expected, start up your Rails development server on the same network/subnet as the emulator in Figure 28, Running the Light Switch application.

Figure 28. Running the Light Switch application

Use the same port number as the one we assigned in the my_server_ip_address_and_port_number string from our Android application. For example, in the case of, the IP address is and the port number is 3344. Pass this as a command-line parameter when launching the Rails server ...

Get Programming Your Home now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.