1 package com.android.settings.nfc;
2 
3 import android.app.Activity;
4 import android.os.Bundle;
5 import android.view.View;
6 import android.widget.Button;
7 
8 import com.android.settings.R;
9 public class HowItWorks extends Activity {
10     @Override
onCreate(Bundle savedInstanceState)11     protected void onCreate(Bundle savedInstanceState) {
12         super.onCreate(savedInstanceState);
13         setContentView(R.layout.nfc_payment_how_it_works);
14         getActionBar().setDisplayHomeAsUpEnabled(true);
15         Button gotIt = (Button) findViewById(R.id.nfc_how_it_works_button);
16         gotIt.setOnClickListener(new View.OnClickListener() {
17             @Override
18             public void onClick(View v) {
19                finish();
20             }
21         });
22     }
23 
24     @Override
onNavigateUp()25     public boolean onNavigateUp() {
26         finish();
27         return true;
28     }
29 
30 }
31