Anyone know of a good way to popup the software keypad automatically on entry 
to a new screen ?

This almost works as I can generate keys in the first field on the screen, but 
it does not work with the DPAD

for example this fills a field with character 0


ke = new KeyEvent(KeyEvent.ACTION_DOWN , KeyEvent.KEYCODE_0);

EditText01.dispatchKeyEvent(ke);

ke = new KeyEvent( KeyEvent.ACTION_UP , KeyEvent.KEYCODE_0);

EditText01.dispatchKeyEvent(ke);


This should simulate a center DPAD click but does not

ke = new KeyEvent(KeyEvent.ACTION_DOWN , KeyEvent.KEYCODE_DPAD_CENTER);

EditText01.dispatchKeyEvent(ke);

ke = new KeyEvent( KeyEvent.ACTION_UP , KeyEvent.KEYCODE_DPAD_CENTER);

EditText01.dispatchKeyEvent(ke);



Earlier example were done using IWindowManager but this class has been removed 
in later versions.






--

You received this message because you are subscribed to the Google Groups 
"Android Discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/android-discuss?hl=en.


Reply via email to