Text To Speech without textfield and button in Android Studio
问题 So, I want to create a text to speech without the use of textfield and button in Android Studio. For example when I open the app it will say "WELCOME TO MY APP" without text field or any button. How can I do that? Need your help. 回答1: You could do like below: import android.app.Activity; import android.os.Bundle; import android.os.Handler; import android.speech.tts.TextToSpeech; import java.util.Locale; public class MainActivity extends Activity { TextToSpeech t1; @Override protected void