I am implementing a syncadapter for an android app and would like to make the settings for the account available under the "Accounts & sync" menu. I have seen this done in the DropBox app(as shown below), but I have not been able to find documentation on how to do this. I have the accounted added, just want to add a link to the account settings in this menu.
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
In your Android Manifest, you should have a section like this to define your account authenticator:
The meta-data tag above should point to an XML file that defines your account, like this:
The android:accountPreferences attribute above points to an XML file that defines your preferences screen, like so:
The above PreferenceScreen will launch an intent to display a settings screen, but you can also define the settings directly in the XML file.
If i understood correctly, You want to show up "Accounts & sync settings" screen from within your application. For this you have to fire an intent for settings. Use code given below:
Hope this helped...