Android Question Global Classes and Events

iCAB

Well-Known Member
Licensed User
Longtime User
Hi All

I have a need for a Global Class that I can use to: store and retrieve information from files, as well as have some dynamic data stored in data structures. The class is heavily used and the data (including the dynamic data) used by all activities. I didn't want to start an instance of the class every time I load an activity or initialize another class that needs the data.

This what I have done so far:
1. Declared the class in a Global Code module
2. The class is initialized during user login
3. When an activity is created, I use a local variable ( for cosmetics ): Class1 = gc.GlobalClass (where gc is the code module and GlobalClass is the class I am talking about )
4. changing data and reading data across the app is not an issue at all
5. The issue I am having is with HTTP events
"Object context is paused. Ignoring CallSubDelayed: DHTRD_JobDone"

Is there a way to avoid the above without having to create separate instances used by every activity

Thanks in advance
 
Top