Once a request is submitted, the voice system will process it and eventually deliver
the result to the request object. The application can cancel a pending request at any
The VoiceInteractor is integrated with Activity's state saving mechanism, so that
if an activity is being restarted with retained state, it will retain the current
VoiceInteractor and any outstanding requests. Because of this, you should always use
Request.getActivity to get back to the activity of a
request, rather than holding on to the activity instance yourself, either explicitly
or implicitly through a non-static inner class.
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
Queries the supported commands available from the VoiceInteractionService.
The command is a string that describes the generic operation to be performed.
An example might be "org.example.commands.PICK_DATE" to ask the user to pick
a date. (Note: This is not an actual working example.)
String: The array of commands to query for support.
Array of booleans indicating whether each command is supported or not.