Reader small image

You're reading from  Mastering Android Wear Application Development

Product typeBook
Published inDec 2016
Reading LevelIntermediate
PublisherPackt
ISBN-139781785881725
Edition1st Edition
Languages
Right arrow
Authors (2):
Siddique Hameed
Siddique Hameed
author image
Siddique Hameed

Siddique Hameed is a pragmatic technologist currently working on Simplify Commerce (https://simplify.com), a payment gateway platform from MasterCard. During his diverse career roles, hes been crafting software for Fortune 500 companies to startups of industry domains ranging from finance, commerce, social media, telecom, bioinformatics, publishing, and insurance. He is passionate about technology, software and their effects on day-to-day lives. He is a strong believer in open-source software culture and actively contributes to many opensource projects. On times, he speaks at technology events, meetups, and mentor contestants in hackathons. He likes teaching kids and adults in programming, technology and software development, and volunteers on coding initiatives such as Girls Who Code, Code.org, and STEM (science, technology, engineering, and mathematics) programs. In his spare time, he likes traveling, goes on long road trips, and tinker with Raspberry Pi and build DIY gadgets.
Read more about Siddique Hameed

Javeed Chida
Javeed Chida
author image
Javeed Chida

Javeed Chida currently works as a senior software engineer for Apollo Education Group, a leader in global education. He has worked with several teams over the years developing multi-layered enterprise applications for companies spanning several industries including education, finance, medical, insurance, construction, and legal. He is passionate about Java portals and particularly enthused by the Liferay portal platform. He also has a love for clever and innovative technical documentation. Apart from periodically churning out articles as a highlighted community blogger on Liferay.com. He spends his leisure absorbed in creative writing projects, particularly classical poetry and fiction.
Read more about Javeed Chida

View More author details
Right arrow

Chapter 12. Publishing Apps to Google Play

"I always believe that the sky is the beginning of the limit."                                                                            - MC Hammer

Testing is an important precursor to the distribution of the app via Google Play store. In this chapter, we will provide an overview of the importance of testing our Android Wear app and the tooling available for it, as well as how to automate UI testing. We will conclude the chapter with step-by-step instructions on how to get the app ready for publishing.

Testing


It does not take too long for any programmer to learn the hard and valuable lesson that testing code is as important as coding itself. Ignore that lesson and a QA team worth its salt will be sure to bring you to your knees. Testing all on its own is a topic that deserves a lot of attention. There are countless resources, including books, out there that will sell you on a wide array of testing methodologies and philosophies. Test-driven Development (TDD) is worth researching if you are new to testing.

However, all that is out of the scope of this book. In this chapter, we are more concerned about the testing tooling provided by the Android platform geared toward Wear development, as well as the test APIs that are at your disposal. Let's take a closer look at that in the sections that follow.

The need for testing

The single most compelling reason to test code, in general, is to catch regressions as early as possible in the application development life cycle. With every code change that...

App distribution


In the previous section, we covered in some detail how to test our app. Testing is a prerequisite for distribution, and it would serve us well to familiarize ourselves with what differentiates a Wear app in terms of quality. Check out the article from the online documentation at https://developer.android.com/distribute/essentials/quality/wear.html, which serves as a reminder in this regard.

Once we have implemented our well-designed app and tested it as much as we can, we can start preparing to distribute it to potential users. That is the focus of this section to examine how to ready and distribute our Wear apps to users through Google Play.

Packaging

As we go through the process of building our release APKs using Android Studio, we find that two different APKs are generated, one for mobile and one for wearable.

Packaging a wearable app in Android Studio involves the following steps:

  1. Replicate all permissions from the manifest file of the wearable app module to the manifest...

Summary


In this chapter, we introduced Android testing and distinguished between local unit tests and instrumented tests. We then summarized the tooling available for testing our wear apps in Android Studio before we took a brief look at how to accomplish automation with UI testing. We concluded with a discussion of the stages that must be traversed when preparing our apps for distribution via Google Play.

lock icon
The rest of the chapter is locked
You have been reading a chapter from
Mastering Android Wear Application Development
Published in: Dec 2016Publisher: PacktISBN-13: 9781785881725
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime

Authors (2)

author image
Siddique Hameed

Siddique Hameed is a pragmatic technologist currently working on Simplify Commerce (https://simplify.com), a payment gateway platform from MasterCard. During his diverse career roles, hes been crafting software for Fortune 500 companies to startups of industry domains ranging from finance, commerce, social media, telecom, bioinformatics, publishing, and insurance. He is passionate about technology, software and their effects on day-to-day lives. He is a strong believer in open-source software culture and actively contributes to many opensource projects. On times, he speaks at technology events, meetups, and mentor contestants in hackathons. He likes teaching kids and adults in programming, technology and software development, and volunteers on coding initiatives such as Girls Who Code, Code.org, and STEM (science, technology, engineering, and mathematics) programs. In his spare time, he likes traveling, goes on long road trips, and tinker with Raspberry Pi and build DIY gadgets.
Read more about Siddique Hameed

author image
Javeed Chida

Javeed Chida currently works as a senior software engineer for Apollo Education Group, a leader in global education. He has worked with several teams over the years developing multi-layered enterprise applications for companies spanning several industries including education, finance, medical, insurance, construction, and legal. He is passionate about Java portals and particularly enthused by the Liferay portal platform. He also has a love for clever and innovative technical documentation. Apart from periodically churning out articles as a highlighted community blogger on Liferay.com. He spends his leisure absorbed in creative writing projects, particularly classical poetry and fiction.
Read more about Javeed Chida