Вопрос

I have an application that has account in accounts and sync. I have option for synchronizing calendar and contacts. In the account there is menu in the upper right corner (standard like on all accounts). You can see what menu I'm talking about on the picture below:

enter image description here

What I want to do is the following:

How can I add item in this menu? Something like settings or so.

Or is there some other way how can I edit settings for this account?

I don't wan't to do this through starting the application and then going to settings, I want to do it from here.

Это было полезно?

Решение

You need to go through the usage of a SyncAdapter with combination of a Service.

Here is a good tutorial (based on Google I/O) to help you get started and working. Also the video shown provides good explanation of a sync adapter.

This is another good one.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top