Learning Android™ Application Programming: A Hands-On Guide to Building Android Applications
by James Talbot, Justin McLean, Jorge Hernandez
Refactoring Your Code
To optimize the code for this chapter, first do a little housekeeping.
1. Rename your project by right-clicking the project name in the Package Explorer and selecting Refactor and Rename. Then type On Your Bike - Chapter 11 into the New name field, and press OK. Make sure the Update References checkbox is checked.
2. Rename the com.androiddevbook.onyourbike.chapter10 package to com.androiddevbook.onyourbike.chapter11 by right-clicking the package name, selecting Refactor and Rename, and typing the new package name into the New name field. Make sure the Update References and Rename Subpackages checkboxes are checked.
3. Open the Android manifest file (AndroidManifest.xml), and double-check that the packages are correct and ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access