197c67a9e01b12203a42df4ccfeec708bbf123e4bDianne Hackborn/*
297c67a9e01b12203a42df4ccfeec708bbf123e4bDianne Hackborn * Copyright (C) 2015 The Android Open Source Project
397c67a9e01b12203a42df4ccfeec708bbf123e4bDianne Hackborn *
497c67a9e01b12203a42df4ccfeec708bbf123e4bDianne Hackborn * Licensed under the Apache License, Version 2.0 (the "License");
597c67a9e01b12203a42df4ccfeec708bbf123e4bDianne Hackborn * you may not use this file except in compliance with the License.
697c67a9e01b12203a42df4ccfeec708bbf123e4bDianne Hackborn * You may obtain a copy of the License at
797c67a9e01b12203a42df4ccfeec708bbf123e4bDianne Hackborn *
897c67a9e01b12203a42df4ccfeec708bbf123e4bDianne Hackborn *      http://www.apache.org/licenses/LICENSE-2.0
997c67a9e01b12203a42df4ccfeec708bbf123e4bDianne Hackborn *
1097c67a9e01b12203a42df4ccfeec708bbf123e4bDianne Hackborn * Unless required by applicable law or agreed to in writing, software
1197c67a9e01b12203a42df4ccfeec708bbf123e4bDianne Hackborn * distributed under the License is distributed on an "AS IS" BASIS,
1297c67a9e01b12203a42df4ccfeec708bbf123e4bDianne Hackborn * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1397c67a9e01b12203a42df4ccfeec708bbf123e4bDianne Hackborn * See the License for the specific language governing permissions and
1497c67a9e01b12203a42df4ccfeec708bbf123e4bDianne Hackborn * limitations under the License.
1597c67a9e01b12203a42df4ccfeec708bbf123e4bDianne Hackborn */
1697c67a9e01b12203a42df4ccfeec708bbf123e4bDianne Hackborn
173ac77bf186f87ecad4bf0063b2f6c4384efbd56aKirill Grouchnikovpackage android.support.v4;
1897c67a9e01b12203a42df4ccfeec708bbf123e4bDianne Hackborn
1997c67a9e01b12203a42df4ccfeec708bbf123e4bDianne Hackbornimport android.app.Activity;
203ac77bf186f87ecad4bf0063b2f6c4384efbd56aKirill Grouchnikovimport android.os.Bundle;
213ac77bf186f87ecad4bf0063b2f6c4384efbd56aKirill Grouchnikovimport android.view.WindowManager;
223ac77bf186f87ecad4bf0063b2f6c4384efbd56aKirill Grouchnikovimport android.widget.FrameLayout;
2397c67a9e01b12203a42df4ccfeec708bbf123e4bDianne Hackborn
243ac77bf186f87ecad4bf0063b2f6c4384efbd56aKirill Grouchnikovpublic class ThemedYellowActivity extends Activity {
253ac77bf186f87ecad4bf0063b2f6c4384efbd56aKirill Grouchnikov    FrameLayout mContainer;
263ac77bf186f87ecad4bf0063b2f6c4384efbd56aKirill Grouchnikov
273ac77bf186f87ecad4bf0063b2f6c4384efbd56aKirill Grouchnikov    @Override
283ac77bf186f87ecad4bf0063b2f6c4384efbd56aKirill Grouchnikov    protected void onCreate(Bundle savedInstanceState) {
293ac77bf186f87ecad4bf0063b2f6c4384efbd56aKirill Grouchnikov        super.onCreate(savedInstanceState);
303ac77bf186f87ecad4bf0063b2f6c4384efbd56aKirill Grouchnikov        mContainer = new FrameLayout(this);
313ac77bf186f87ecad4bf0063b2f6c4384efbd56aKirill Grouchnikov
323ac77bf186f87ecad4bf0063b2f6c4384efbd56aKirill Grouchnikov        getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
333ac77bf186f87ecad4bf0063b2f6c4384efbd56aKirill Grouchnikov        setContentView(mContainer);
3497c67a9e01b12203a42df4ccfeec708bbf123e4bDianne Hackborn    }
3597c67a9e01b12203a42df4ccfeec708bbf123e4bDianne Hackborn}
36