

SwitchPreference: This is used to turn on or turn off a certain service in the application.This option is also present in the default Settings Activity. RingtonePreference: This can be used to change the ringtone of the notification that comes from the application.One example of this can be checking the option of file uploading using wifi as well as the cellular data. CheckBoxPreference: This is used to select more than one option at a time.It can be the name of the user or the name of the directory of the application where the user is storing some data of the app.


Navigate to the res folder and add an XML directory if not present with name xml. the UI of the page that will be opened after clicking on the Settings option. Now, our next step is to add the UI for the Settings i.e. You can manually add the Settings option in the menu item in your application. Till now, we have added the Settings options in our application by using the Basic Activity. In this blog, we will look at how to implement the Settings by using the Basic Activity. If your application needs one or all the above three mentioned features, then you can add a Settings Activity, but if you want some customized settings in your application, then you should be using the first option of using the Settings option in your application by creating a Basic Activity. Data & sync: Here you will find an option to set the sync frequency of your application.Notification: Here you will we give with options to change the Ringtone of the notification along with vibrate option.Other options available here are: Enable social recommendations and Add friends to messages. General: You can change the Display name.By adding a Settings Activity, you will be given three options as below:
#Android how to change app settings android
Also, the users don’t access the Settings frequently, because they change the Settings once and they rarely need to go back and change it again.Īlso, the user prefers to change the settings of the application by clicking on the Settings present inside navigation or is present in the menu item like below:Īnother way of creating a Setting Activity is to go to your Java/Kotlin code folder in your Android project and then right click > new > Activity > Settings Activity. Settings allow the users to change the behavior and functionality of a particular application instead of changing the behavior and functionality of all the applications present in the mobile device. In order to use this functionality in our application, we can use the feature of Settings which is a part of Android Jetpack. Other examples include taking the current address of the user or setting the notification sound to a particular ringtone of your own choice. For example, if you want to increase the text size of the text present in your application and not to increase the text size of all the applications present in the mobile device. There are certain situations when you want to have some kind of Settings in your application apart from the Android default Settings.
