I encountered a problem with having multiple accounts of my own custom type.
I use GCM (Google Cloud Messaging) to recieve messages from our application server. Now since you need to make your own implementation of GCMIntentService extending GCMBaseIntentService, you need to override onRegistered(Context context, String regId) , the problem here lies in that I want to send saved data on the account (an auth token) to our application server in that method. So that the application server knows which device/registration id belongs to a certain account in our own database.
How am I going to find out for which account I just registered to GCM with inside the onRegistered() method? (I couldn't find any similar question =( )