WebView and AJAX

VitalyVitaly ✭✭USMember ✭✭

Hello, I am use WebView ant iе talking with native part of application.
Data from WebView I am intercept with url params that get in

public override bool ShouldOverrideUrlLoading(WebView view, string url)

When I want to pass data to WebView's html I am call

str = jsonObject.Serialize();

or LoadURL wholly html page.

But there is case when html javacript call GET request and waiting response.
Like xmlHTTPrequest object.
So how can I immediately send response to xmlHTTPrequest if I was the server?
P.S. Html should remain thinks it send to server.


  • VitalyVitaly ✭✭ USMember ✭✭
    edited April 2013

    Will there suitable method

     WebResourceResponse shouldInterceptRequest(WebView view, String url) 

    that Notify the host application of a resource request and allow the application to return the data ?

Sign In or Register to comment.