Using Wakelocks
Using Wakelocks
Using Wakelocks
Types of wakelocks:
FULL_WAKE_LOCK — Keeps the screen at full brightness, the keyboard backlight
illuminated, and the CPU running.
SCREEN_BRIGHT_WAKE_LOCK — Keeps the screen at full brightness and the CPU running.
SCREEN_DIM_WAKE_LOCK — Keeps the screen on (but lets it dim) and the CPU running.
PARTIAL_WAKE_LOCK — Keeps the CPU running.
1. Create a wakelocks
2. Acquire the wakelocks
Using Wakelocks
Introducing Android Text to Speech
• The text-to-speech (TTS) libraries, also known as speech synthesis, enable you
to output synthesized speech from within your applications, allowing them to
“talk” to your users.
• Due to storage space constraints on some Android devices, the language
packs are not always preinstalled on each device.
• To check for the TTS libraries, start a new Activity for a result using the
ACTION_CHECK_TTS_DATA action from the TextToSpeech.Engine class.
Introducing Android Text to Speech
• Mobile device should recognize the voice- The onActivityResult handler will
receives CHECK_VOICE_DATA_PASS .
• If the voice data is not currently available, start a new Activity using the
ACTION_INSTALL_TTS_DATA action from the TTS Engine class to initiate its
installation.