I have a static class
public class EventManager {
public static Vector<ORMEventData> eventQueue = new Vector<ORMEventData>();
public static void populateQueue(Context context)
{
.... draws items from a database and adds them to the queue
}
}
when EventManager.populateQueue is called from a service starting in the main activity, that activity and others report eventQueue to be empty, while the service constantly reports that the activity is populated.
the same occurs vice versa, the service will report the eventQueue to be empty if populateQueue has been called in an activity.
Could someone please explain this behaviour and propose a solution?