Android Invents Apps For Embedded Developers

Aug. 11, 2010
Android platforms can make a great front end for headless embedded systems if you can program it.

HTC's Desire runs Android

No programming skills required

You won’t find too many Google Nexus One smart phones floating around, but the flood of Android-based phones like HTC’s Desire from other vendors continues to overwhelm the competition (Fig. 1). Android is rapidly moving into the tablet and embedded space as well.

Support for Android platforms is available from major embedded tool vendors such as Wind River, Mentor Graphics, and MontaVista. If you’re planning on putting Android on your hardware, then these are the companies to see.

Most developers are likely to be taking advantage of someone else’s hardware, though. In this case, it’s an application development chore that programmers are familiar with. Part of that chore is understanding the underlying interfaces and using the associated development tools, of which there tends to be a wide range of solutions.

For the Android, developers typically have three choices: write a native application using something like Java or C++, write a Web-based application, or utilize a rapid prototype system.

The first option is for heavy-duty applications or for developers who are already well versed in Android, its interface, and its tools. The learning curve is relatively steep for a developer new to Android.

Web-based applications are suitable if connectivity isn’t an issue. This is typically true for the kinds of solutions we are talking about here where Ethernet, Wi-Fi, or Bluetooth are likely to be the network of choice. The embedded device to be controlled would be running the Web server.

Web servers tend to be included in network support for most operating systems. The trick is designing the Web pages for the target device. This is possible but not always as easy as a novice developer might think. HTML 5 will help for some applications needing video.

The Web approach has the advantage of placing few requirements on the control device, other than needing a Web browser. It also means all the application code is kept on the embedded device.

Smart-Phone Interface
The third alternative is to build a native Android application using a rapid prototyping system. Android has several rapid prototype and design tools available from a number of sources. For example, Adobe’s Fireworks can target various platforms including Android and Apple’s iPhone and iPad.

Another tool from Google Labs, App Inventor, targets developers with little or no programming skills (Fig. 2). Its graphical programming language is based on the Massachusetts Institute of Technology’s Scratch programming environment.

Under the hood, Scratch and App Inventor are written in Scheme, a lexically scoped variant of Lisp. The Lisp code is turned in Java byte codes using the Kawa Scheme framework. Kawa works with a range of Java virtual machines.

Continue next page

Why Use An Android Front end?
I use a Motorola Droid from Verison Wireless, so this isn’t really a question I ask, but many will. Actually, the question should be more generic: why build your own front end? There are plenty of reasons why you would, from specific hardware requirements to the need for high-speed graphics that might be hard to come by on some Android platforms.

Still, plenty of headless applications could use a graphical front end where Android is more than adequate. These range from TV remote controls to setting the temperature at home. Using Android has the advantage of putting a multifunction device in the user’s hands while not having to supply the device. The downside includes compatibility issues and testing requirements.

Google App Inventor

Kawa Framework

Scratch

About the Author

William G. Wong | Senior Content Director - Electronic Design and Microwaves & RF

I am Editor of Electronic Design focusing on embedded, software, and systems. As Senior Content Director, I also manage Microwaves & RF and I work with a great team of editors to provide engineers, programmers, developers and technical managers with interesting and useful articles and videos on a regular basis. Check out our free newsletters to see the latest content.

You can send press releases for new products for possible coverage on the website. I am also interested in receiving contributed articles for publishing on our website. Use our template and send to me along with a signed release form. 

Check out my blog, AltEmbedded on Electronic Design, as well as his latest articles on this site that are listed below. 

You can visit my social media via these links:

I earned a Bachelor of Electrical Engineering at the Georgia Institute of Technology and a Masters in Computer Science from Rutgers University. I still do a bit of programming using everything from C and C++ to Rust and Ada/SPARK. I do a bit of PHP programming for Drupal websites. I have posted a few Drupal modules.  

I still get a hand on software and electronic hardware. Some of this can be found on our Kit Close-Up video series. You can also see me on many of our TechXchange Talk videos. I am interested in a range of projects from robotics to artificial intelligence. 

Sponsored Recommendations

Comments

To join the conversation, and become an exclusive member of Electronic Design, create an account today!