Learning Android™ Application Programming: A Hands-On Guide to Building Android Applications
by James Talbot, Justin McLean, Jorge Hernandez
Refactoring Your Code
You’ll refactor your code by moving methods around and creating new classes as required. First, let’s do a little housekeeping to make sure the code translates into your new chapter.
1. Rename your project by right-clicking on the project name in the Package Explorer, selecting Refactor and Rename, and then typing On Your Bike - Chapter 9 into the New name field and pressing OK. Make sure Update references is checked.
2. To rename the com.androiddevbook.onyourbike.chapter8 package to com.androiddevbook.onyourbike.chapter9, right-click on the package name, select Refactor and Rename, and type the name of the new package in the New name field. Make sure Update references and Rename subpackages are checked.
3. Open the Android ...
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