I've declare the variables here (not sure if that's right) but it's giving an error "unknown type" and inviting me to add a library.
B4X:
Sub Globals
'These global variables will be redeclared each time the activity is created.
Dim PhoneId As PhoneId
Dim PE As PhoneEvent
End Sub
The B4A installation does include "Phone.jar", so not sure if this is really the problem. If so, I'm not sure where to go to get an additional library?