1b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamath/* 2b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamath * Copyright (C) 2011 The Android Open Source Project 3b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamath * 4b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamath * Licensed under the Apache License, Version 2.0 (the "License"); 5b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamath * you may not use this file except in compliance with the License. 6b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamath * You may obtain a copy of the License at 7b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamath * 8b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamath * http://www.apache.org/licenses/LICENSE-2.0 9b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamath * 10b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamath * Unless required by applicable law or agreed to in writing, software 11b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamath * distributed under the License is distributed on an "AS IS" BASIS, 12b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamath * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamath * See the License for the specific language governing permissions and 14b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamath * limitations under the License. 15b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamath */ 16b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamathpackage com.example.android.ttsengine; 17b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamath 18b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamathimport android.os.Bundle; 19b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamathimport android.preference.PreferenceActivity; 20b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamath 21b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamathimport java.util.List; 22b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamath 23b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamath/* 24b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamath * This class is referenced via a meta data section in the manifest. 25b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamath * A settings screen is optional, and if a given engine has no settings, 26b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamath * there is no need to implement such a class. 27b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamath */ 28b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamathpublic class RobotSpeakSettings extends PreferenceActivity { 29b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamath @Override 30b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamath protected void onCreate(Bundle savedInstanceState) { 31b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamath super.onCreate(savedInstanceState); 32b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamath } 33b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamath 34b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamath @Override 35b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamath public void onBuildHeaders(List<Header> target) { 36b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamath loadHeadersFromResource(R.xml.preferences_headers, target); 37b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamath } 38b688761bab0578d6253c93c47ed4a1c1d159407fNarayan Kamath} 39