It is now the time to develop a simple application settings activity from which a user can update their profile status. Create a new package within com.example.messenger.ui named settings. Within this package, create a new settings activity. Name the activity SettingsActivity. To create a settings activity, right-click on the settings package, then select New | Activity | Settings Activity. Input the necessary details of the new settings activity, such as an activity name and activity title, then click Finish.
In the process of creating a new SettingsActivity, Android Studio will add a number of additional files to your project. In addition to this, a new .xml resource directory (app | res | xml) will be added to your project. This directory should contain the following files:
- pref_data_sync.xml
- pref_general.xml
- pref_headers.xml...