I have met a problem when I capture the http package when my webView visit a url. the package shows that the request send by ajax has a \'X-requested-with\' key in the heade
well, finally I solve the question. I can't find out the way to modify the headers in the request send by ajax in an loading page still, but I chose to override public String getPackageName()
in Application
. I look up the callingstack, if the calling comes from android.webkit, I return another string instead of my package name. So my issues solved. But the basic question still leaves.