10 best practices for moving to a single activity

Subscribers:
1,350,000
Published on ● Video Link: https://www.youtube.com/watch?v=9O1D_Ytk0xg



Duration: 6:17
78,821 views
1,058


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




Other Videos By Android Developers


2019-01-31Android Developer Story: Mobills grows revenue with Google Play subscription features
2019-01-14What’s new in Android Studio 3.3
2019-01-06Google Play | Indie Games Accelerator 2018
2018-12-25Android 2018 highlights
2018-12-06Building mental resilience through technology
2018-12-04Android Developer Story: Fanatee explores the subscription model
2018-11-30Android Developer Story: QQMusic delivers great experiences with Android 9
2018-11-30Android Developer Story: Chinese developer CamScanner builds a business platform with Android
2018-11-30Android Developer Story: HelloTalk improves app quality & revenue w/ Android Vitals & Subscriptions
2018-11-30Android Developer Story: Rayark improves game quality and conversion rate with Google Play Console
2018-11-2110 best practices for moving to a single activity
2018-11-21Monetizing your games as a service (Indie Developer Day, Seattle 2018)
2018-11-21Building an awesome game for Android (Indie Developer Day, Seattle 2018)
2018-11-21Android development in Unity: Considerations and best practices (Indie Developer Day, Seattle 2018)
2018-11-21Indie publisher panel (Indie Developer Day, Seattle 2018)
2018-11-21New and advanced Google Play tools for developers (Indie Developer Day, Seattle 2018)
2018-11-21Mobile free-to-play fundamentals (Indie Developer Day, Seattle 2018)
2018-11-195 tips to master ConstraintLayout
2018-11-16That’s a wrap on Android Dev Summit 2018!
2018-11-13Android Developer Story: Netmarble finding success in emerging markets
2018-11-13How to defer billing



Tags:
Single activity best practices
why move to a single activity
activities as entry points
activity scope
fragmentfactory
navcontroller
navigation architecture component
fragmentscenario
android development best practices
app testing android
android fragments
android dev summit 2018
android dev summit ‘18
#androiddevsummit
android dev summit announcements
android development
android platform
android developers
GDS: Yes;
type: Dev News;