1

I have a webview app where I'm displaying images in a full screen popup. But, whenever a user press back button, it goes to previous page without closing it. Where the user intent is to close the popup and view other images. If the pop-up is visible, how to stop going back to previous page, but close the pop up.

sponge
  • 7,923
  • 13
  • 43
  • 77
Afz
  • 33
  • 4

1 Answers1

0

You have to define a function in your page which is loaded in WebView. When the back button is pressed, you call that function. You can look at this link for more information: Calling JavaScript from Android

No Body
  • 625
  • 4
  • 13