Ad

Monday 7 September 2020

How To Make Video Splash Screen In Android Studio Or Video Play In Background In Android Studio | Free Source Code | ANDROIDEARNER | DDN STAR

Hey, Guys Welcome to My Support Tech. In This Post, I will tell you " How To Make Video Splash Screen In Android Studio " Or "Video Play In Background". So let's start with empty activity -

How To Make Video Splash Screen In Android Studio Or Video Play In Background In Android Studio | Free Source Code | ANDROIDEARNER | DDN STAR
How To Make Video Splash Screen In Android Studio Or Video Play In Background In Android Studio | Free Source Code | ANDROIDEARNER | DDN STAR

Splash Screen UI

  • MainActivity.XML



RAW Folder - Create a raw folder by right click on the app then New > Android Resource Directory then select raw. After creating the folder copy and paste here video file .mp4
 
Also Read - How To Implement In-App Review API Flow In Application

Drawable - copy and paste here video snapshot image. For use In ImageView.
Value > Style > set the NoActionBar
  • MainActivity.JAVA
 

 

Button 

If You Want To Change Button Background Or Make A Custom Button
Right Click On Drawable > New > Drawable Resource File > Name It Your File and paste this code.

 


After that set the Button

 

Button Animation

If You Want To Add Animation In The Button
Right, Click On res > Directory > Write anim for Create Animation Directory after this Right Click On anim > New > Animation Resource File And  Name It.
Now Copy And Paste This 


Add This In MainActivity.Java


Handler

If You No Need A Button And You Want After Video End User Go To Second Activity. So You Do This First Remove the button code form java and XML

Add This Code In Side "OnCreate"


How To Make Video Splash Screen In Android Studio Or Video Play In Background In Android Studio | Free Source Code | ANDROIDEARNER | DDN STAR
Remove In-Display Navigation Button In Android Studio

  

In-Display Navigation Button Remove

If You Want To Remove This navigation Buttons.So Paste This Code On "OnCreate"
 


All Done. Now Build And Enjoy. 
 
 

Video Tutorial 



For The Latest #Auto #News and #Reviews, Follow My Support Tech On Twitter, Facebook, And Subscribe To Our Email Notification.

1 comment:

  1. when i did it to my activity the application crashed
    (my application has stopped)
    help me please

    ReplyDelete