1.Make sure you have an Android TV set up as an Android Virtual Device for testing in addition to the phone emulators used in previous labs.
2.Add the following to your Android manifest to declare it as supporting TVs:
You will also need to add an intent filter for your main activity in the manifest, i.e.
3.Update the layout for the MainActivity to look like the followingThe layout has a black background, an ImageView with height and width set to match parent, and a ProgressBar at the very bottom with the width also set to match parent.
4.Inside values -> themes -> themes.xml, there will be a reference of an ActionBar theme. Update this to say “NoActionBar” so you don’t have the bar across the top of the TV. i.e.becomes
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here