Popup widget history android

Hi All,

I am using a popup widget in my screen,

When i enable and disable popup on my screen, and then i use my android device back button,

i get the popup again. Ideally it should take me to the previous screen history.

Can anyone tell me how to handle back button for popup widget, or in short handle history for popup widget?



Thanks in advance :)

Hi Yasmeen,

I assume you are using one Boolean variable for  popup show and hide.

please check the default value of this variable if true is always visible when you redirect or navigate on this page.


Hope this will help you.

Regards

Rahul Sahu

Yasmeen Shaikh wrote:

Hi All,

I am using a popup widget in my screen,

When i enable and disable popup on my screen, and then i use my android device back button,

i get the popup again. Ideally it should take me to the previous screen history.

Can anyone tell me how to handle back button for popup widget, or in short handle history for popup widget?



Thanks in advance :)


Hi Yasmeen,


Rahul is right. I have also a local variable type boolean to show and close the pop up. I tried this on the device and works.

Please let us know if you solved the problem.


Regards