Creating the application's settings activity

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 |

Get Kotlin Programming By Example now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.