![enter image description here](https://i.stack.imgur.com/Wr0Ie.png)

I have one Activity which contain one Edittext, On launching App Edittext come with Soft keyboard, As shown in above figure

![enter image description here](https://i.stack.imgur.com/f4Qb1.png)

Now on First back press button I need to display a dilog box.Normally that dialog appear on second back press. As shown above. But image should come with first screen. Please help me.