How to create an app setting in an xamarin android app that shows in the Android Settings/Apps/App Setting for that app? Code Answer

Hello Developer, Hope you guys are doing great. Today at Tutorial Guruji Official website, we are sharing the answer of How to create an app setting in an xamarin android app that shows in the Android Settings/Apps/App Setting for that app? without wasting too much if your time.

The question is published on by Tutorial Guruji team.

I have been over the documentation here:
https://developer.android.com/guide/topics/ui/settings

The above page talks about creating a settings UI in your app, and shows using an XML file (that it doesn’t tell you where to put by the way).

I do not want to add a settings UI in my app. I just want a setting to appear in android settings app under Apps when you pick my app from that list, it already has a section called “App settings”. I want to add a setting for my app here, and be able to read it from my app. (Would be a bonus to be able to write to it from my app as well.)

Is this possible to do this and if so, can someone point me to an example.

Thanks for your time.

Answer

I ended up going with Xamarin.Essentials: Preferences as this was the closest I could find to what I wanted and I didn’t have to have a settings UI in the app.

https://docs.microsoft.com/en-us/xamarin/essentials/preferences?context=xamarin%2Fandroid&tabs=android

We are here to answer your question about How to create an app setting in an xamarin android app that shows in the Android Settings/Apps/App Setting for that app? - If you find the proper solution, please don't forgot to share this with your team members.

Related Posts

Tutorial Guruji