| | |
| | | import android.app.Notification; |
| | | import android.app.NotificationChannel; |
| | | import android.app.NotificationManager; |
| | | import android.content.ActivityNotFoundException; |
| | | import android.content.Intent; |
| | | import android.content.pm.ActivityInfo; |
| | | import android.content.res.Configuration; |
| | |
| | | public void onClick(View v) { |
| | | hiddenMenu(); |
| | | String url = tv_url.getText().toString(); |
| | | Uri uri = Uri.parse(url); |
| | | Intent intent = new Intent(Intent.ACTION_VIEW, uri); |
| | | startActivity(intent); |
| | | try { |
| | | Uri uri = Uri.parse(url); |
| | | Intent intent = new Intent(Intent.ACTION_VIEW, uri); |
| | | startActivity(intent); |
| | | } catch (ActivityNotFoundException e) { |
| | | Toast.makeText(VideoPlayerBrowserActivity.this, "无法找到浏览器", Toast.LENGTH_SHORT).show(); |
| | | } catch (Exception e) { |
| | | |
| | | } |
| | | } |
| | | }); |
| | | |