M mistermentality Active Member Licensed User Longtime User Mar 1, 2011 #1 I have my first B4A app working nicely but I get two intermittent errors which I don't understand the cause of. I utilised the new WebView page finished event (possibly incorrectly?) like this: Code: Copy Sub WebView1_PageFinished Label1.Text = "You are here...." End Sub And every now and then I get a brief error that there was a java.lang exception in the above sub and that "signature does not match expected signature" And again the exact same error message from this routine: Code: Copy Sub Http_ResponseError (Response As HttpResponse, TaskId As Int, StatusCode As Int) If StatusCode = -1 Then ToastMessageShow("The phone appears to be offline", True) ProgressDialogHide ' close the progress dialog End Sub Am I missing something obvious that I can correct? Dave Last edited: Mar 1, 2011
I have my first B4A app working nicely but I get two intermittent errors which I don't understand the cause of. I utilised the new WebView page finished event (possibly incorrectly?) like this: Code: Copy Sub WebView1_PageFinished Label1.Text = "You are here...." End Sub And every now and then I get a brief error that there was a java.lang exception in the above sub and that "signature does not match expected signature" And again the exact same error message from this routine: Code: Copy Sub Http_ResponseError (Response As HttpResponse, TaskId As Int, StatusCode As Int) If StatusCode = -1 Then ToastMessageShow("The phone appears to be offline", True) ProgressDialogHide ' close the progress dialog End Sub Am I missing something obvious that I can correct? Dave
Erel B4X founder Staff member Licensed User Longtime User Mar 2, 2011 #2 Your Subs signatures do not match the expected event signature. The IDE can generate these Subs automatically. See this post: http://www.b4x.com/forum/basic4android-getting-started-tutorials/6546-ide-tips.html#post38342 Upvote 0
Your Subs signatures do not match the expected event signature. The IDE can generate these Subs automatically. See this post: http://www.b4x.com/forum/basic4android-getting-started-tutorials/6546-ide-tips.html#post38342