You may have misunderstood the Android account system. When you go to Settings β Accounts and sync and add a new account, you will see a list of account types. Often there is a relationship between account types and applications, for example, Facebook accounts are used with Facebook. Usually you add a new type of account if you have another backend system for authentication processing, etc.
If you understand correctly, you are using Google accounts, but want it to appear as your own account type. That sounds wrong to me. In the end, you will override the processing of your Google account, but it will not matter much. I find it easier for users if you simply agree to what Google provides you. When you click on an account, your application / service / content provider can be seen. For example, after setting "Tasks" in the "Team Task" (disclaimer: I am not an affiliate of this company) they add "Synchronization Tasks" to the list of data and synchronization parameters.
But if you really want to create your own account type, follow the sample Sync adapter example . Find the Authenticator code and related resources (e.g. manifest, action layout, etc.).
andyandy
source share