开发者

Custom service in 'Accounts & Sync'

开发者 https://www.devze.com 2023-02-25 10:02 出处:网络
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

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

精彩评论

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

关注公众号