[FONT=Consolas, sans-serif][SIZE=2][COLOR=#7f0055][B]public[/B][/COLOR][COLOR=#7f0055][B]class[/B][/COLOR][COLOR=#000000] MYClass [/COLOR][COLOR=#7f0055][B]extends[/B][/COLOR][COLOR=#000000] Activity {[/COLOR][/SIZE][/FONT]
[FONT=Consolas, sans-serif][SIZE=2][COLOR=#000000] [/COLOR][COLOR=#7f0055][B]private[/B][/COLOR][COLOR=#000000] EditText [/COLOR][COLOR=#0000c0]text[/COLOR][COLOR=#000000];[/COLOR][/SIZE][/FONT]
[COLOR=#000000][FONT=Consolas, sans-serif][SIZE=2] String x;[/SIZE][/FONT][/COLOR]
[FONT=Consolas, sans-serif][SIZE=2][COLOR=#000000] [/COLOR][COLOR=#646464]@Override[/COLOR][/SIZE][/FONT]
[FONT=Consolas, sans-serif][SIZE=2][COLOR=#000000] [/COLOR][COLOR=#7f0055][B]protected[/B][/COLOR][COLOR=#7f0055][B]void[/B][/COLOR][COLOR=#000000] onCreate(Bundle savedInstanceState) {[/COLOR][/SIZE][/FONT]
[FONT=Consolas, sans-serif][SIZE=2][COLOR=#000000] [/COLOR][COLOR=#3f7f5f]// [/COLOR][COLOR=#7f9fbf][B]TODO[/B][/COLOR][COLOR=#3f7f5f] Auto-generated method stub[/COLOR][/SIZE][/FONT]
[FONT=Consolas, sans-serif][SIZE=2][COLOR=#000000] [/COLOR][COLOR=#7f0055][B]super[/B][/COLOR][COLOR=#000000].onCreate(savedInstanceState);[/COLOR][/SIZE][/FONT]
[FONT=Consolas, sans-serif][SIZE=2][COLOR=#000000] setContentView(R.layout.[/COLOR][COLOR=#0000c0][I]layout[/I][/COLOR][COLOR=#000000]);[/COLOR][/SIZE][/FONT]
[COLOR=#000000][FONT=Consolas, sans-serif][SIZE=2] [/SIZE][/FONT][/COLOR]
[FONT=Consolas, sans-serif][SIZE=2][COLOR=#000000] text = (EditText) findViewById(R.id.[/COLOR][COLOR=#0000c0][I]myEditText[/I][/COLOR][COLOR=#000000]);[/COLOR][/SIZE][/FONT]
[COLOR=#000000][FONT=Consolas, sans-serif][SIZE=2] [/SIZE][/FONT][/COLOR]
[COLOR=#000000][FONT=Consolas, sans-serif][SIZE=2] [/SIZE][/FONT][/COLOR]
[FONT=Consolas, sans-serif][SIZE=2][COLOR=#000000] [/COLOR][COLOR=#0000c0]text[/COLOR][COLOR=#000000].setOnKeyListener([/COLOR][COLOR=#7f0055][B]new[/B][/COLOR][COLOR=#000000] OnKeyListener() {[/COLOR][/SIZE][/FONT]
[COLOR=#000000][FONT=Consolas, sans-serif][SIZE=2] [/SIZE][/FONT][/COLOR]
[FONT=Consolas, sans-serif][SIZE=2][COLOR=#000000] [/COLOR][COLOR=#7f0055][B]public[/B][/COLOR][COLOR=#7f0055][B]boolean[/B][/COLOR][COLOR=#000000] onKey(View v, [/COLOR][COLOR=#7f0055][B]int[/B][/COLOR][COLOR=#000000] keyCode, KeyEvent event) {[/COLOR][/SIZE][/FONT]
[FONT=Consolas, sans-serif][SIZE=2][COLOR=#000000] [/COLOR][COLOR=#3f7f5f]// [/COLOR][COLOR=#7f9fbf][B]TODO[/B][/COLOR][COLOR=#3f7f5f] Auto-generated method stub[/COLOR][/SIZE][/FONT]
[FONT=Consolas, sans-serif][SIZE=2][COLOR=#000000] x = text.getText().toString ();[/COLOR][/SIZE][/FONT]
[FONT=Consolas, sans-serif][SIZE=2][COLOR=#000000] [/COLOR][COLOR=#7f0055][B]return[/B][/COLOR][COLOR=#7f0055][B]false[/B][/COLOR][COLOR=#000000];[/COLOR][/SIZE][/FONT]
[COLOR=#000000][FONT=Consolas, sans-serif][SIZE=2] }[/SIZE][/FONT][/COLOR]
[COLOR=#000000][FONT=Consolas, sans-serif][SIZE=2] });[/SIZE][/FONT][/COLOR]
[COLOR=#000000][FONT=Consolas, sans-serif][SIZE=2] [/SIZE][/FONT][/COLOR]
[COLOR=#000000][FONT=Consolas, sans-serif][SIZE=2] }[/SIZE][/FONT][/COLOR]