mWebViewUpdatedReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
String webviewPackage = "package:" + WebViewFactory.getWebViewPackageName();
if (webviewPackage.equals(intent.getDataString())) {
onWebViewUpdateInstalled();
}
}
};
IntentFilter filter = new IntentFilter();
filter.addAction(Intent.ACTION_PACKAGE_REPLACED);
filter.addDataScheme("package");
getContext().registerReceiver(mWebViewUpdatedReceiver, filter);
publishBinderService("webviewupdate", new BinderService());