| | |
| | | import android.graphics.BitmapFactory; |
| | | import android.graphics.Color; |
| | | import android.graphics.PixelFormat; |
| | | import android.net.Uri; |
| | | import android.net.http.SslError; |
| | | import android.os.Build; |
| | | import android.os.Bundle; |
| | |
| | | return true; |
| | | } else if (url.contains("/tbopen/") || url.startsWith("tbopen://")) { |
| | | return true; |
| | | } else if (url.startsWith("tenvideo2://") || url.startsWith("iqiyi://")||url.startsWith("youku://")) { |
| | | try { |
| | | Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url)); |
| | | startActivity(intent); |
| | | } catch (Exception e) { |
| | | |
| | | } |
| | | return true; |
| | | } else if (!url.startsWith("http")) |
| | | return true; |
| | | |
| | |
| | | } |
| | | } |
| | | }; |
| | | if (playerJSRunnable != null) |
| | | if (playerJSRunnable != null && webview != null) |
| | | webview.postDelayed(playerJSRunnable, 1000); |
| | | } |
| | | |
| | |
| | | @Override |
| | | public void onResume() { |
| | | super.onResume(); |
| | | MobclickAgent.onPageStart("网页"); |
| | | } |
| | | |
| | | @Override |
| | | public void onPause() { |
| | | super.onPause(); |
| | | MobclickAgent.onPageEnd("网页"); |
| | | } |
| | | |
| | | @Override |