Refactoring in Android Studio
summary
Shows how the Refactor menu in Android Studio plus plugins actually reduces real technical debt: run Metrics Reloaded to find a method with cyclomatic complexity 9 and design complexity 10, then apply extract method, move method and replace temp with query to move pricing logic out of a 600–2,000 line activity into Rental and Presenter classes. Uses Sonar/SonarCloud for CI gating, requires unit tests before each step, and converts classic Activities toward MVP/AAC with measurable complexity drops.
AI-written summary · about
chapters (5)
- 0:00Introduction to refactoring
- 10:51Code smells and technical debt
- 23:11Refactoring tools in Android Studio
- 30:16Practical refactoring examples
- 36:18Lessons learned and resources
related talks
31mPatterns for Safe Refactoring of Android Apps
50mGuide Refactorings With Behavioral Code Analysis
32mPrioritizing Technical Debt as if Time and Money Matters
39mArch. App: Prioritizing Technical Debt as if Time and Money Matters
42mWorking Effectively with (Android) Legacy Code
30mPrioritizing Technical Debt as if Time and Money Matters
27mHalf Way to clean architecture
39mMVP: The Life-Changing Magic of Tidying Up Your Android Presentation Layer
