Last active
December 16, 2015 08:59
-
-
Save leonguyen/5409613 to your computer and use it in GitHub Desktop.
Android Lab: Shared References - Reference Activity - Create PreferenceActivity
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example.androidlab; | |
| import android.os.Bundle; | |
| import android.preference.PreferenceActivity; | |
| public class SettingActivity extends PreferenceActivity { | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| // TODO Auto-generated method stub | |
| super.onCreate(savedInstanceState); | |
| addPreferencesFromResource(R.xml.preferences); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment