I have a function that server to update my map in the application, ie change the position icons and such, but I would like to do the following:
When I received a message from my GCM, for example "Update", I would like the function to update my map to be called. Of course I need to check if the map screen is open and everything, but I do not know how to do it.
I simply did in onMessage
call my function, but of the error, speaking that I am not in the UI Thread does anyone know how to do?