I can't find how to do this. There's this documentation: https://developers.google.com/analytics/devguides/collection/android/v2/advanced - it shows this method:
gaInstance.getTracker(trackingId)
Where trackingId is the api key, but I think this can be used only after the tracker is already configured right? It's not to set the api key.
I need this, because my app has to track to different accounts, depending of a certain server configuration. The server will send me the api key where to track to.
Thanks in advance.
P.S. I'm using Google Analytics V2.