When I open the site with a stock browser everything works great. But when I 
use WebView that uses same browser stuff that is dynamically generated doesn't 
work even thought I have Java enabled. Not sure what to do?

 Here is my code:

I have a chat button that when you click will popup an chat window that just 
keeps on loading seems like app is not allowing requests to be made from 
already loaded page!


package com.amigote.testing;

import android.app.Activity;
import android.app.ProgressDialog;
import android.graphics.Bitmap;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.Window;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.ProgressBar;


public class MainActivity extends Activity {
 WebView web;


 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);

 //Hide Title Bar - This Should be done before SetContentView



 setContentView(R.layout.activity_main);
 // Inflation

 web = (WebView) findViewById(R.id.webview);




 // enabling javaScript
 WebSettings webSettings = web.getSettings();
 webSettings.setJavaScriptEnabled(true);
 web.setWebChromeClient(new WebChromeClient());
 webSettings.setBuiltInZoomControls(true);
 web.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);



 web.loadUrl("http://www.amigote.com";);









 }

 @Override
 public void onBackPressed() {
 if (web.canGoBack()) {
 web.goBack();
 } else {
 super.onBackPressed();
 }
 }
}


-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/551b3e16-c00a-4f5b-828e-fd143f558a52%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to