2

Does anyone know where can I find a full list of settings?

This is my code it works, the only problem I have I cannot find the line to bring up the google voice settings I'm looking for:

if (Build.VERSION.SDK_INT >= 14){
    Intent intent = new Intent();
    intent.setAction("com.android.settings.TTS_SETTINGS");
    intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    startActivity(intent);
}else {
    Intent intent = new Intent();
    intent.addCategory(Intent.CATEGORY_LAUNCHER);
    intent.setComponent(new ComponentName("com.android.settings", "com.android.settings.TextToSpeechSettings"));
    intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    startActivity(intent);
}
Blauharley
  • 4,186
  • 6
  • 28
  • 47
Jani
  • 51
  • 8
  • 1
    Google is your friend. https://developer.android.com/reference/android/provider/Settings.html – Yuliwee Jan 06 '18 at 09:10
  • Thanks, i actually figured it out Google voice settings are actually not a part of the system settings it uses a google package and i have to access it a different way- think i ll figure it out eventually : ) – Jani Jan 10 '18 at 07:25
  • Under Android Studio (2021.3.1.17) & SDK 33, I am getting "Class referenced in the manifest, com.android.settings.TTS_SETTINGS , was not found in the project or the libraries". Any idea how to solve this? – WebViewer Dec 12 '22 at 15:25

0 Answers0