Is there are way to use fragments with the AccountAuthenticatorActivity when I'm using the Support Package? AccountAuthenitactorActivity does not subclass the FragmentActivity class and therefore I'm not sure how to use fragments with it when I'm using the Support package.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
No, but the AccountAuthenticatorActivity
is just a helper class that does some basic plumbing on the AccountAuthenticatorResponse
- you're not required to subclass it.
Just borrow (from here, for instance - the code hasn't changed any between this snapshot and ICS) the relevant functionality and extend whatever base class you want and you're good to go.