How to check whether a control gets a focus or not in android
<p>I have a question that How to check whether the widget having a focus or not. Actually I have a form in which there is a DOB edit text, a user navigates all the edit text boxes with Next action on keyboard and I want when user navigates to DOB field from any of the control then a Calendar Dialog automatically appears, currently what happens is user have to click on edit text then a Calendar Dialog appears, I want whenever DOB field gets a focus then it automatically call the Calendar Dialog. </p>

<p>I have searched regarding the same enough on web but failed to achieve this. Please help me out about this problem.</p>

<p>Thanks in advance.</p>
