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
| xml
) will be added to your project. This directory should contain the following files:
pref_data_sync.xml
pref_general.xml
pref_headers.xml
pref_notification.xml
You may choose to delete the pref_notification.xml
and pref_data_sync.xml
files. We will not make use...