Learning Android™ Application Programming: A Hands-On Guide to Building Android Applications
by James Talbot, Justin McLean, Jorge Hernandez
Refactoring Your Code
To start, you’ll do a simple refactor, renaming the application and classes from Chapter 7 to Chapter 8. Later in this chapter, you’ll refactor your code by moving methods and creating new classes as required.
1. Rename your project by right-clicking on the project name in the Package Explorer and selecting Refactor and Rename. Then type On Your Bike - Chapter 8 into the New name field and press OK.
2. Rename the com.androiddevbook.onyourbike.chapter7 package to com.androiddevbook.onyourbike.chapter8 by right-clicking on the package name, selecting Refactor and Rename and typing the new package name into the New name field.
3. Open the Android manifest file (AndroidManifest.xml), and double-check that the packages are correct ...
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