调度类型首选项活动

时间:2015-06-19 15:51:40

标签: android-activity eclipse-luna

protected void onCreate(Bundle savedInstancestate){

super.onCreate(savedInstancestate);

addPreferencesFromResources(R.xml.prefs);

}

1 个答案:

答案 0 :(得分:0)

protected void onCreate(Bundle savedInstanceState)     {

    super.onCreate (savedInstanceState);
    addPreferencesFromResource (R.xml.YourFileName);

}