A AdorableApple Member Jul 27, 2025 #1 Hello, I'm trying to use phone events as described here: https://www.b4x.com/android/help/phone.html#phoneevents_initializewithphonestate 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: Copy 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?
Hello, I'm trying to use phone events as described here: https://www.b4x.com/android/help/phone.html#phoneevents_initializewithphonestate 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: Copy 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?
Erel B4X founder Staff member Licensed User Longtime User Jul 27, 2025 #2 You need to go to the "libraries" tab on the right side and check the Phone library. And create a new B4XPages project. Upvote 0
You need to go to the "libraries" tab on the right side and check the Phone library. And create a new B4XPages project.