Back to project page MapsDemo.
The source code is released under:
Apache License
If you think the Android project MapsDemo listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.infy.dheeraj.mapsdemo; // w w w.jav a 2s . com import android.app.Fragment; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.webkit.WebSettings; import android.webkit.WebView; public class BingMaps extends Fragment{ private WebView webView; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { webView= (WebView) inflater.inflate(R.layout.bing_maps, null); initWebView(); return webView; } private void initWebView() { WebSettings wSettings = webView.getSettings(); wSettings.setJavaScriptEnabled(true); webView.loadUrl("file:///android_asset/web/index.html"); } }