i have a app with a listview and an adapter (ArrayAdapter).
Now i have an implementation of GCM with a backend, then when i receive a GCM Message, from the IntentService i need to do a
listViewActivityContext.getList().getAdapter().notifyDataSetChanged();
I think i need the activity context in the IntentService but i dont know how can i get it and check if its the context for the Activity that contains the ListView.
Anyone has an example?
Thanks.