tubeshowcase●1,660,611 videos♡ My collection 0
← Technology

Technology06:17

10 best practices for moving to a single activity

Android Developers ↗

From the creator

Watch the keynote and all sessions → http://bit.ly/ADS18-Sessions Learn the 10 best practices for moving to a single activity! 1. Use activities as entry points into your app’s UI. When a user goes to launch your app, their launching on activity. 2. Share data between screens by using the activity scope! 3. Use the Navigation Architecture Component to make navigating between destinations even easier. 4. Navigate between destinations with the new gradle plugin, Safe args. 5. Extract your business logic, don’t test at the destination level! 6. Test with FragmentScenario! Fragment 1.1 was just released with a new feature for testing and verifying fragments. 7. Mock the NavController to confirm that you’re calling the right navigate calls. 8. Inject dependencies with FragmentFactory. 9. Use multiple tasks when appropriate. Gasp! 10. Don't contort your app architecture. Do what’s right for your app. Watch the full session by Ian Lake → http://bit.ly/2DxvUzq Event site → http://bit.ly/2BjcuPi Subscribe to the Android Channel! → http://bit.ly/AndroidDevs1 #AndroidDevSummit

Published 2018-11-21 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Technology