Writing the Code for the Android Client

You might be wondering why you should go through the trouble of building a native Android client when the web application we wrote can be accessed by the Android mobile web browser. Well, if all you wanted to do was toggle light switches on and off, then I would say you don’t need a native client. The web interface works just fine and can be further enhanced using AJAX and slick HTML5/CSS3 user interface effects. But if you want to give a little more intelligence to the app, such as activating power switches based on your proximity to them or running an Android service that monitors inbound X10 events like motion detection and then sounds an alert on your phone to bring such events to your attention, a ...

Get Programming Your Home now with O’Reilly online learning.

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