Home | History | Annotate | Download | only in fmrxapp
      1 /*
      2  *
      3  * Copyright 2001-2011 Texas Instruments, Inc. - http://www.ti.com/
      4  *
      5  * Licensed under the Apache License, Version 2.0 (the "License");
      6  * you may not use this file except in compliance with the License.
      7  * 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
     12  * distributed under the License is distributed on an "AS IS" BASIS,
     13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14  * See the License for the specific language governing permissions and
     15  * limitations under the License.
     16  */
     17 
     18 package com.ti.fmrxapp;
     19 
     20 import android.app.Activity;
     21 import android.os.Bundle;
     22 import android.view.KeyEvent;
     23 import android.view.View;
     24 import android.widget.Button;
     25 
     26 public class FmRxHelp extends Activity implements View.OnKeyListener,
     27         View.OnClickListener {
     28     public static final String TAG = "FmTxHelp";
     29 
     30     /** Called when the activity is first created. */
     31 
     32     public void onCreate(Bundle savedInstanceState) {
     33         super.onCreate(savedInstanceState);
     34         setContentView(R.layout.fmrxhelp);
     35         initControls();
     36 
     37     }
     38 
     39     private void initControls() {
     40         Button btnBack = (Button) findViewById(R.id.btnBack);
     41         btnBack.setOnClickListener(this);
     42 
     43     }
     44 
     45     public boolean onKey(View arg0, int arg1, KeyEvent arg2) {
     46         return false;
     47     }
     48 
     49     public void onClick(View v) {
     50         int id = v.getId();
     51         switch (id) {
     52         case R.id.btnBack:
     53             finish();
     54             break;
     55         }
     56     }
     57 }
     58