FileDocCategorySizeDatePackage
GetPin2Screen.javaAPI DocAndroid 1.5 API2468Wed May 06 22:42:46 BST 2009com.android.phone

GetPin2Screen

public class GetPin2Screen extends android.app.Activity
Pin2 entry screen.

Fields Summary
private static final String
LOG_TAG
private android.widget.EditText
mPin2Field
private View.OnClickListener
mClicked
Constructors Summary
Methods Summary
private java.lang.StringgetPin2()

        return mPin2Field.getText().toString();
    
private voidlog(java.lang.String msg)


        
        Log.d(LOG_TAG, "[GetPin2] " + msg);
    
protected voidonCreate(android.os.Bundle icicle)


    
        
        super.onCreate(icicle);

        setContentView(R.layout.get_pin2_screen);
        setupView();
    
private voidreturnResult()

        Bundle map = new Bundle();
        map.putString("pin2", getPin2());

        Intent intent = getIntent();
        Uri uri = intent.getData();

        Intent action = new Intent();
        if (uri != null) action.setAction(uri.toString());
        setResult(RESULT_OK, action.putExtras(map));
        finish();
    
private voidsetupView()
Reflect the changes in the layout that force the user to open the keyboard.

        mPin2Field = (EditText) findViewById(R.id.pin);
        if (mPin2Field != null) {
            mPin2Field.setKeyListener(DigitsKeyListener.getInstance());
            mPin2Field.setMovementMethod(null);
            mPin2Field.setOnClickListener(mClicked);
        }