Abstract
The solutions you develop in Android Studio will not always follow a straight path from design to finish. To be an effective Android programmer, you need to be flexible and refactor your code as you develop, debug, and test. In the preceding chapter, you learned how Android Studio can generate code; in this chapter, you're going to see how Android Studio can refactor your code. The greatest risk with refactoring code is that you may introduce unintended errors. Android Studio mitigates these risks by analyzing the consequences of certain risky refactoring operations, and then activates the Find tool window, in which you may preview your changes—flagged with any errors or conflicts—before committing them.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsAuthor information
Authors and Affiliations
Rights and permissions
Copyright information
© 2015 Adam Gerber and Clifton Craig
About this chapter
Cite this chapter
Gerber, A., Craig, C. (2015). Refactoring Code. In: Learn Android Studio. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-6602-0_4
Download citation
DOI: https://doi.org/10.1007/978-1-4302-6602-0_4
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-6601-3
Online ISBN: 978-1-4302-6602-0
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)