Android Question Variable as Map

Nicolás Cieri

Active Member
Licensed User
Hi,

I have a public class with my public variables.

In iOS I have the same...

Public MyVar as Map

When I use in the first Activity.. is Ok.

But if I call this variable from other Activity, is not initialized, but yes.. It has been previously initialized in another activity and already has values.

This variable must be filled in each activity? Can it not be really global?

Or am I doing it wrong?

In b4i, it works fine this way.
 

DonManfred

Expert
Licensed User
Longtime User
I have a public class with my public variables
all variable in your class are bound to the instance initiated in activity X.

You need to initialize it in every activity or use the class in the starter service and access the variable(s) through the instance in starter service.

You also can create process global vars in starter service and acces them from every activity.
 
Last edited:
Upvote 0
Top