Android Question static object

yaniv hanya

Active Member
Licensed User
Hi
I have a class that coordinates all the operations in front of a usb device.
I understood that this was done by declaring the class in the Process_Globals
And then i can access it from any module.
But I don't succeed to call it from others activities
how can i do דomething like that?
 

Erel

Administrator
Staff member
Licensed User
The starter service is the best place for public globals. Make sure to initialize it in Service_Create.

Don't assume that your app will always start from the main activity.

You can then access it with:
B4X:
Starter.MyObject
 
Top