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 -
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
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
After that set the Button
Add This In MainActivity.Java
Add This Code In Side "OnCreate"
All Done. Now Build And Enjoy.
For The Latest #Auto #News and #Reviews, Follow My Support Tech On Twitter, Facebook, And Subscribe To Our Email Notification.
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 XMLAdd This Code In Side "OnCreate"
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.
when i did it to my activity the application crashed
ReplyDelete(my application has stopped)
help me please