How to set focus to a button widget programmatically?

Viewed 125914

Is it possible to set a focus to a button widget which lies somewhere down in my layout? onCreate of the activity my control/focus should be on that button programmatically.

2 Answers

Try this:

btn.requestFocusFromTouch();
Related