Set a 
TextWatcher<http://developer.android.com/reference/android/widget/TextView.html#addTextChangedListener%28android.text.TextWatcher%29>on
 your EditText. When your watcher gets notified about changed text you 
can immediately pass that input on to your WebView. In order to avoid 
repeated calls to your WebView with incomplete user input you could rewrite 
your TextWatcher to start a timer when text has changed. The timer waits 
for one or two seconds until it updates the WebView. It gets cancelled / 
reset by your TextWatcher as soon as the text changed again.

On Thursday, February 14, 2013 10:14:45 AM UTC-6, Dan Uff wrote:
>
> Hi all:
>
> This may sound like a basic question, but here goes....
>
> I am accepting input from a user from an EditText field.  When he/she 
> types in a route number (example: 101) I need to call a webView based on 
> that number - showing a schedule for that route number.  I don't have any 
> example code yet, because I have no idea how to set this up in Android (I 
> am coming from iOS experience).
>
> I am using Eclipse as the programming environment.
>
> Thanks,
> Dan Uff
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to