VideoView vv_splash;
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
vv_splash = (VideoView) findViewById(R.id.vv_splash);
// String uriPath = ;
// Log.d("aaa", uriPath);
// Uri uri = ;
vv_splash.setVideoURI(Uri.parse("android.resource://"+ getPackageName() +"/" + R.raw.puppy));
vv_splash.requestFocus();
vv_splash.start();
int SPLASH_DISPLAY_LENGTH = 3000;
new Handler
().
postDelayed(new Runnable() { @Override
public void run() {
// Intent mainIntent = new Intent(SplashScreen.this, Login.class);
// startActivity(mainIntent);
// finish();
}
}, SPLASH_DISPLAY_LENGTH);
}
VmlkZW9WaWV3IHZ2X3NwbGFzaDsKICAgIEBPdmVycmlkZQogICAgcHJvdGVjdGVkIHZvaWQgb25DcmVhdGUoQE51bGxhYmxlIEJ1bmRsZSBzYXZlZEluc3RhbmNlU3RhdGUpIHsKICAgICAgICBzdXBlci5vbkNyZWF0ZShzYXZlZEluc3RhbmNlU3RhdGUpOwogICAgICAgIHZ2X3NwbGFzaCA9IChWaWRlb1ZpZXcpIGZpbmRWaWV3QnlJZChSLmlkLnZ2X3NwbGFzaCk7Ci8vICAgICAgICBTdHJpbmcgdXJpUGF0aCA9IDsKLy8gICAgICAgIExvZy5kKCJhYWEiLCB1cmlQYXRoKTsKLy8gICAgICAgIFVyaSB1cmkgPSA7CiAgICAgICAgdnZfc3BsYXNoLnNldFZpZGVvVVJJKFVyaS5wYXJzZSgiYW5kcm9pZC5yZXNvdXJjZTovLyIrIGdldFBhY2thZ2VOYW1lKCkgKyIvIiArIFIucmF3LnB1cHB5KSk7CiAgICAgICAgdnZfc3BsYXNoLnJlcXVlc3RGb2N1cygpOwogICAgICAgIHZ2X3NwbGFzaC5zdGFydCgpOwogICAgICAgIGludCBTUExBU0hfRElTUExBWV9MRU5HVEggPSAzMDAwOwogICAgICAgIG5ldyBIYW5kbGVyKCkucG9zdERlbGF5ZWQobmV3IFJ1bm5hYmxlKCkgewogICAgICAgICAgICBAT3ZlcnJpZGUKICAgICAgICAgICAgcHVibGljIHZvaWQgcnVuKCkgewovLyAgICAgICAgICAgICAgICBJbnRlbnQgbWFpbkludGVudCA9IG5ldyBJbnRlbnQoU3BsYXNoU2NyZWVuLnRoaXMsIExvZ2luLmNsYXNzKTsKLy8gICAgICAgICAgICAgICAgc3RhcnRBY3Rpdml0eShtYWluSW50ZW50KTsKLy8gICAgICAgICAgICAgICAgZmluaXNoKCk7CiAgICAgICAgICAgIH0KICAgICAgICB9LCBTUExBU0hfRElTUExBWV9MRU5HVEgpOwogICAgfQ==
Main.java:1: error: class, interface, or enum expected
VideoView vv_splash;
^
Main.java:3: error: class, interface, or enum expected
protected void onCreate(@Nullable Bundle savedInstanceState) {
^
Main.java:3: error: class, interface, or enum expected
protected void onCreate(@Nullable Bundle savedInstanceState) {
^
Main.java:5: error: class, interface, or enum expected
vv_splash = (VideoView) findViewById(R.id.vv_splash);
^
Main.java:9: error: class, interface, or enum expected
vv_splash.setVideoURI(Uri.parse("android.resource://"+ getPackageName() +"/" + R.raw.puppy));
^
Main.java:10: error: class, interface, or enum expected
vv_splash.requestFocus();
^
Main.java:11: error: class, interface, or enum expected
vv_splash.start();
^
Main.java:12: error: class, interface, or enum expected
int SPLASH_DISPLAY_LENGTH = 3000;
^
Main.java:13: error: class, interface, or enum expected
new Handler().postDelayed(new Runnable() {
^
Main.java:15: error: class, interface, or enum expected
public void run() {
^
Main.java:21: error: class, interface, or enum expected
}
^
11 errors