illegal state exception when trying to change a marker on a Google Maps v2 Api from a Google Cloud Messaging message
I am writing an android app and I have markers on a Google Map that should be changed to a position that I receive by GCM. I have a global static List in which I save the marker together with an id and the position. I can change the positions of the Objects in the list in my GCMBaseIntentService when I receive a message, but when I want to execute the following code: mMarker.setPosition(new LatLng(member.getLatitude(),member.getLongitude())); I get the following Exception: 01-13 18:52:38.118: E/AndroidRuntime(7605): FATAL EXCEPTION: IntentService[GCMIntentService-1041237551356-1] 01-13 18:52