To the webview I write the html5 and javascript,jquery related code.Below code is set the info window to marker.Please tell me what will be the wrong in this code .
map.setInfoWindowAdapter(new InfoWindowAdapter() {
@Override
public View getInfoWindow(Marker arg0) {
return null;
}
@Override
public View getInfoContents(Marker arg0) {
View v = getLayoutInflater().inflate(R.layout.popups,
null);
WebView webView = (WebView) v
.findViewById(R.id.webview_popup);
TextView open = (TextView) v
.findViewById(R.id.open_popup);
webView.getSettings().setJavaScriptEnabled(true);
webView.loadDataWithBaseURL("file:///android_asset/",objectValue.trim(),
"text/html", "utf-8", null);
open.setText("Open");
return v;
}
});
here objectValue means Html5 type string