Step #1: Use addJavascriptInterface() on your WebView to inject some object from your activity into the WebView's environment.
Step #2: Have your page call that injected object with whatever data you need. Step #3: Have a beer. And no cheating by moving step #3 earlier in the process! On Mon, Nov 8, 2010 at 4:44 PM, Chuck Kasek <[email protected]> wrote: > Currently, I use a regular activity with some EditText fields as a > registration screen in my application. The inputs are used to > construct a soap message which is posted to the registration server, > with the response being parsed to do some configuration of the > application. > > I'd like to change this to have the registration page load in a > WebView instance, so that the registration process takes place on an > external web page. This would make it easier to make changes to the > registration process without having to deploy a new build, as it would > just be a matter of changing the web page that is loaded in the > WebView. > > The question is - would there be any way for me to get the response > that is sent back from my registration server to the client? From > what I can tell, if I went this route, there wouldn't be a way for me > to parse the response like I currently do to initialize the > application settings. Any help is appreciated! > > -Chuck > > -- > 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 > -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- 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

