/[projects]/android/EKLLauncher/src/dk/thoerup/ekllauncher/EKLLauncherActivity.java
ViewVC logotype

Diff of /android/EKLLauncher/src/dk/thoerup/ekllauncher/EKLLauncherActivity.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1617 by torben, Thu Oct 20 20:23:48 2011 UTC revision 1618 by torben, Thu Oct 20 20:30:48 2011 UTC
# Line 19  import android.webkit.WebChromeClient; Line 19  import android.webkit.WebChromeClient;
19  import android.webkit.WebSettings;  import android.webkit.WebSettings;
20  import android.webkit.WebStorage.QuotaUpdater;  import android.webkit.WebStorage.QuotaUpdater;
21  import android.webkit.WebView;  import android.webkit.WebView;
22    import android.webkit.WebViewClient;
23  import android.widget.Toast;  import android.widget.Toast;
24    
25  public class EKLLauncherActivity extends Activity {  public class EKLLauncherActivity extends Activity {
# Line 76  public class EKLLauncherActivity extends Line 77  public class EKLLauncherActivity extends
77                  }                  }
78                                    
79          }          }
80            
81            class DummyWebViewClient extends WebViewClient {                
82            }
83                    
84          static final String URL = "http://omdeling.info/mobil/ekl/login.php";          static final String URL = "http://omdeling.info/mobil/ekl/login.php";
85                    
# Line 147  public class EKLLauncherActivity extends Line 150  public class EKLLauncherActivity extends
150          settings.setSupportMultipleWindows(false);          settings.setSupportMultipleWindows(false);
151                    
152          web.setWebChromeClient(new CustomChromeClient() );          web.setWebChromeClient(new CustomChromeClient() );
153          web.setWebViewClient( new DebugWebViewClient() );          web.setWebViewClient( new DummyWebViewClient() ); // skal have en webviewclient for at kunne styre ved forlad tur
154                    
155          if ( (telMgr.getSimState() == TelephonyManager.SIM_STATE_READY && telMgr.getDataState() == TelephonyManager.DATA_CONNECTED) || connMgr.getActiveNetworkInfo().getType() == ConnectivityManager.TYPE_WIFI) {          if ( (telMgr.getSimState() == TelephonyManager.SIM_STATE_READY && telMgr.getDataState() == TelephonyManager.DATA_CONNECTED) || connMgr.getActiveNetworkInfo().getType() == ConnectivityManager.TYPE_WIFI) {
156                  web.loadUrl( URL );                  web.loadUrl( URL );

Legend:
Removed from v.1617  
changed lines
  Added in v.1618

  ViewVC Help
Powered by ViewVC 1.1.20