Hi there,

I'm developing an app requiring:

   1. Voice recognition 
   2. Without an Internet connection
   3. To be deployed on a Nexus 7

The Nexus 7 I have already has OS 4.1.1 and offline voice recognition 
installed and, indeed, manually-triggered voice typing works fine offline 
in text fields, etc. SpeechRecognizer (and its related intent) do not work 
offline, of course.

Therefore, all I'd like to be able to do is:

   1. Start my app
   2. Automatically activate a voice typing-based IME on a text 
   field, preferably hidden, so the app can start recognizing right away and 
   keep at it

I've already built a specialized voice typing-based IME, per this:
http://android-developers.blogspot.com/2011/12/add-voice-typing-to-your-ime.html
 

...and all that seems to remain is directing use of this IME via the 
InputMethodManager, in one way or another. The setInputMethod() method 
seems to be the trick, but I'm not sure how to obtain the IBInder argument. 
This IME and the activity designed to employ it are all in the same APK, so:

   1. Does anyone know if this should this be doable?
   2. If so, any idea how to obtain/convey the IBinder from the custom IME 
   to the InputMethodManager (is this just a standard service binder?)?

Thanks for your time, in advance :)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to