Android Question BETA problems, so many errors!!!!

Malky

Active Member
Licensed User
Longtime User
BETA Errors

I have a piece of code below:-
B4X:
If KeyCode = KeyCodes.KEYCODE_BACK Then
        If pnlDetails.Visible = True Then
        Log("Removing mapview")
            Activity.RemoveView
            Activity.CloseMenu
        End If
    End If
I get the error (remove view) attached which I haven't had before?

If I rem that line out and try again I get the following 'exception' error (attached) and so on for many sub routines:-
B4X:
Sub btnPhone_Click
    Log("Phone button Clicked")
    Dim btn As Button
    btn = Sender
    'Activity.Title = "Phoning"
    ToastMessageShow("Going to call, WHEN it's working", True)
End Sub
 

Attachments

  • remove view.png
    remove view.png
    55.6 KB · Views: 239
  • exception.png
    exception.png
    58.6 KB · Views: 249

Malky

Active Member
Licensed User
Longtime User
Thanks Erel, it must have been an older version I downloaded when it was released and not had time to install.

Seemed ok to start with then errors, but realised I hadn't saved the code under the new version, doh!

Ok now apart from the Activity.Removeview, which may be deprecated, so I replaced it with Activity.RemoveAllViews and it compiles fine.

Cheers,

Malky
 
Upvote 0
Top