VideoSupportActivity.java revision aa49439ba6276137f94fcdc1bf4f69b78833dad6
1/* This file is auto-generated from OnboardingDemoFragment.java. DO NOT MODIFY. */ 2 3/* 4 * Copyright (C) 2016 The Android Open Source Project 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except 7 * in compliance with the License. You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software distributed under the License 12 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express 13 * or implied. See the License for the specific language governing permissions and limitations under 14 * the License. 15 */ 16package com.example.android.leanback; 17 18import android.support.v4.app.FragmentActivity; 19import android.os.Bundle; 20 21/** 22 * Activity demonstrating the use of {@link android.support.v17.leanback.app.VideoFragment} 23 */ 24public class VideoSupportActivity extends FragmentActivity { 25 26 @Override 27 protected void onCreate(Bundle savedInstanceState) { 28 super.onCreate(savedInstanceState); 29 if (savedInstanceState == null) { 30 getSupportFragmentManager().beginTransaction() 31 .replace(android.R.id.content, new SampleVideoSupportFragment()) 32 .commit(); 33 } 34 } 35} 36