Android Question WebView

Discussion in 'Android Questions' started by Thommy, Apr 13, 2019.

  1. Thommy

    Thommy Member Licensed User

    Hello everyone, I have inserted a video of youtube in a web view and I wanted to ask how to stop the video when I click on the back button of the phone without first stopping the video?
    Sub Activity_KeyPress (KeyCode As Int) As Boolean

    If KeyCode = KeyCodes.KEYCODE_BACK Then
    'torno alla home
            'torno alla home
            WebView1.Visible =
    End If
    End Sub
  2. Erel

    Erel Administrator Staff Member Licensed User

  3. Thommy

    Thommy Member Licensed User

    Ok Erel! Thanks
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice