Simple wearable projects with your Android phone

Compiling and Running the App

After the screen layout and logic are complete, the Build menu item compiles the app, which can be made available as an APK downloadable file or as a QR code link (Figure 6).

Figure 6: Build options.

Once the app is installed on the phone, pushing the Talk button opens the Google speech recognition dialog. If you've spoken a valid keyword, you should hear the line from the data file (Figure 7). You can update the data file without making any changes to the app.

Figure 7: Final Android app listing the elements in the text file. In this example, the query results are only returned as an audible. You could very easily add another Label and show the query results here.

Final Thoughts

In this example, I used a simple text file, but you could enhance the code to support multifield CSV files, cloud services, HTTP requests, or Google Maps.

Infos

  1. MIT App Inventor sign-in: http://ai2.appinventor.mit.edu/
  2. App Inventor info: http://appinventor.mit.edu

The Author

You can investigate more neat projects by Pete Metcalfe and his daughters at https://funprojects.blog.

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News