private Button next_button = null;
@Override
public void onClick(View view)
{
if(view==next_button)
{
event.dispatch(callback);
}
}
KeyEvent.Callback callback = new Callback() {
@Override
public boolean onKeyUp(int keyCode, KeyEvent event) {
// TODO Auto-generated method stub
return false;
}
@Override
public boolean onKeyMultiple(int keyCode, int count, KeyEvent event) {
// TODO Auto-generated method stub
return false;
}
@Override
public boolean onKeyLongPress(int keyCode, KeyEvent event) {
// TODO Auto-generated method stub
return false;
}
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
// TODO Auto-generated method stub
youredittext.requestFocus();
return false;
}
};