开发者

Custom service in 'Accounts & Sync'

I have a Twitter widget installed on my Android 2.1 and for now in 'Accounts 开发者_开发问答& sync' app when I press 'Add account' I have ability to add Twitter account. Moreover screens for adding Twitter account in 'Accounts & sync' app are made in Twitter design.

Q: How I can put binding to my service in the 'Accounts & sync' as Twitter done?


You need to implement SyncAdapter; see this sample. I've yet to see a good source of documentation for this, but as far as I can recall, you need to implement an account provider too.

Hope this helps,

Phil Lello

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜