Hi All,
I have a online web application for mobile devices. Its url is
http://www.yomotouch/content/mobile/mobilecomics.jsp . I would like to
wrape it with Android's WebKit but i am unable to load app on
android's web kit currenctly. Code is given below...
public void onCreate(Bundle savedInstanceState) {
WebView mWebView = new WebView(getApplicationContext()) ;
WebSettings webSettings = mWebView.getSettings();
webSettings.setSavePassword(false);
webSettings.setSaveFormData(false);
webSettings.setJavaScriptEnabled(true);
webSettings.setSupportZoom(false);
webSettings.setLoadsImagesAutomatically(true);
webSettings.setUserAgent(2);
mWebView.addJavascriptInterface(new DemoJavaScriptInterface(),
"demo");
mWebView.loadUrl("http://192.168.0.10/content/mobile/
mobilecomics.jsp");
super.onCreate(savedInstanceState);
setContentView(mWebView);
/** running code to load a webpage
Context context =getBaseContext();
WebView v =new WebView(context ) ;
v.loadUrl("http://192.168.0.10/content/mobile/
mobilecomics.jsp");
super.onCreate(savedInstanceState);
setContentView(v);
*/
}
Please help me. I am new to android.
Thanks
Balendra
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---