Home | History | Annotate | Download | only in mediadump
      1 /*
      2  * Copyright (C) 2011 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 package com.android.mediadump;
     18 
     19 import android.app.TabActivity;
     20 import android.content.Intent;
     21 import android.content.SharedPreferences;
     22 import android.os.Bundle;
     23 import android.widget.TabHost;
     24 
     25 /**
     26  * A media tool to play a video and dump the screen display
     27  * into raw RGB files. Check VideoDumpView for tech details.
     28  */
     29 public class MediaDump extends TabActivity {
     30 
     31     @Override
     32     protected void onCreate(Bundle savedInstanceState) {
     33         super.onCreate(savedInstanceState);
     34 
     35         // TODO: Read/Write the settings.
     36 
     37         setContentView(R.layout.main);
     38 
     39         TabHost tab = getTabHost();
     40 
     41         // Setup video dumping tab
     42         TabHost.TabSpec videoDumpTab = tab.newTabSpec("VideoDump");
     43         videoDumpTab.setIndicator("VideoDump");
     44 
     45         Intent videoDumpIntent = new Intent(this, VideoDumpActivity.class);
     46         videoDumpTab.setContent(videoDumpIntent);
     47 
     48         tab.addTab(videoDumpTab);
     49 
     50         // Setup rgb player tab
     51         TabHost.TabSpec rgbPlayerTab = tab.newTabSpec("RgbPlayer");
     52         rgbPlayerTab.setIndicator("RgbPlayer");
     53 
     54         Intent rgbPlayerIntent = new Intent(this, RgbPlayerActivity.class);
     55         rgbPlayerTab.setContent(rgbPlayerIntent);
     56 
     57         tab.addTab(rgbPlayerTab);
     58     }
     59 }
     60 
     61