Create a fragment, define navigation paths, and start an external activity. Complete the AndroidTrivia app, which is a game in which users answer trivia questions about Android development and can share their results if they win.
Create a fragment
Import the starter code for the AndroidTrivia app. Then, create a new fragment and include it in the layout file.
Start an external activity
Update the AndroidTrivia app to allow users to share results with friends through other apps. Set up the Safe Args plugin, add and pass arguments between fragment destinations, and use an implicit intent for the share menu item.
Test your knowledge of navigating in an app and navigating to an external activity to earn your Navigation badge.