550 CHAPTER 14: Android Content Providers: Providing Data to Applications
Figure 14-46. Test the middle three button elements in your UI design
Now you can get into developing for Android wearable devices and Android appliances in the next
two chapters! Hooray!
Summary
In this chapter, you learned about Android Content Provider databases as well as about database
concepts, principles, processes, and optimization. You learned about ContentValues objects
and how to use the getContentResolver( ) method and its .query( ) and .insert( ) method calls.
You learned all about different types of databases that come with Android, including Contacts,
ContactsContract, CalendarContract, and MediaStore. You learned about CONTENT_URI and
about what makes up a URI data path reference.
You created your own database access Activity subclass called ContactGalaxy to read from and
write to the ContactsContract database in Android. You learned about the TableLayout container
class and how easy it is to use to make tabular layouts using just a few lines of XML markup. Then you
created the infrastructure for your ContactGalaxy class and created your listGalaxyRulers( ) database
READ method and addGalaxyViceroy( ) database WRITE method. You used these methods inside
your Button object event handlers to read and write the ContactsContract database in Android.
In Chapter 15, you will learn all about developing for Android wearables, which is an advanced area
that includes all of the areas covered in the book thus far. I saved this most complicated chapter for
last. You will be developing an application for the popular Neptune Pine SmartWatch product, so
exciting times lie ahead!