0
appView是cordovaActivity.appVeiw DownloadListener是webkit.DownloadListener 我也在场景中使用Crosswalk。cordovaActivity.appView DownloadListener err
DownloadListener dl = new DownloadListener() {
public void onDownloadStart(String url, String userAgent,
String contentDisposition, String mimetype,
long contentLength) {
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
startActivity(i);
finish();
}
};
appView.setDownloadListener(dl);
它给犯错而编译
sample.java:###: error: cannot find symbol
[javac] appView.setDownloadListener(dl);
[javac] ^
[javac] symbol: method setDownloadListener(DownloadListener)
[javac] location: variable appView of type CordovaWebView
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 1 error
不知道如何解决这个问题?
相同ERR .Looks CordovaWebView没有setDownloadListner – nealthereader 2015-01-12 14:39:01