Methods Summary |
---|
private java.lang.String | getPin2()
return mPin2Field.getText().toString();
|
private void | log(java.lang.String msg)
Log.d(LOG_TAG, "[GetPin2] " + msg);
|
protected void | onCreate(android.os.Bundle icicle)
super.onCreate(icicle);
setContentView(R.layout.get_pin2_screen);
setupView();
|
private void | returnResult()
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 void | setupView()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);
}
|