how to modify the value of the key 'X-requested-with' in the request headers of resource request in Android webview, but not a page request?'dan gelen yanıt iyi çalışıyor ancak getPackageName() yönteminin çağrısının web kümesinden gelip gelmediğini nasıl bileceğimi bilmiyorum.Web görünümü için başvuruda getPackageName() öğesini değiştirin, ancak iyi çalışıyor ancak
package com.xxx.xxx;
import android.app.Application;
public class Global extends Application {
private static Global instance;
public Global() {
instance = this;
}
private final String PACKAGE="com.webnews.appdirector";
@Override
public void onCreate() {
super.onCreate();
}
@Override
public String getPackageName() {
return PACKAGE; //this work fine, but how to know if is webkit callback ??? "instance" have mcomponentcallbacks set to webkit, but how to read it ???
}
}
ben "Örneğin" nin ayıklama "mcomponentcallbacks" ile yapabileceği "webkit" konulu iyi ama okumak için nasıl bilmiyorum: İşte benim kodudur.
Yardımcı olabilir misiniz? parçacığından