Android Question Can I use Phone Library in a Service Module?

lip

Active Member
Licensed User
Longtime User
I have found that I can only "Dim p as Phone" in Globals. It doesn't seem to work in Process Globals. Is this correct?

As there are no Globals in a Service Module, can I use the Phone Library within the Service? If so - where do I Dim the phone?
 

lemonisdead

Well-Known Member
Licensed User
Longtime User
Hello,
There should be no problem to Dim P as Phone in a service (I do use it every day or so). Where to instantiate it depends on the usage you plan to do. In globals should be a good place if you want to receive an event or in a sub if it is only for an action.

Did you get any error while trying to Dim P in Globals ?
 
Upvote 0

lemonisdead

Well-Known Member
Licensed User
Longtime User
Edit: and if you Dim in the Process_Globals remember to access P using the path to the activity where it was declared (for instance Main.P)
 
Upvote 0
Top