I found out that if I remove a msgbox2 in the override sub code before it tries to play the local mp3, then the webview is still responsive. But I want to ask the user a question before the audio plays and wait for their response before playing the audio, but then the webview becomes unresponsive.
Any ideas why this causes a problem? It used to work just fine asking a question and waiting for a response before playing the audio.
Would the msgbox2async solve this problem? If so what is the code for that?
Currently the msgbox2 code looks like this:
result = Msgbox2("Question?", "Select Option", "Continuous", "No", "Repeat", Null)
Below is my code to change to msgbox2async. What else do I need to add to my code to make it work?
Msgbox2Async("Question?", "Selection Options", "Continuous", "No", "Repeat", Null, False)
Wait For MsgBox_Result (result As Int)
It threw an error on compile: Resumable subs return type must be ResumableSub (or none). So I changed As Boolean at the end of the override sub to As ResumableSub
Sub FlingableWebView1_OverrideUrl(FlingableWebView As FlingableWebView, url As String) As Boolean
Then when I compile it throws this error:
error: code too large
public void resume(BA ba, Object[] result) throws Exception{
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
How do I fix that?
I have msgbox2's in other parts of my app and they work fine, just locks up webview when used in the webview override sub.