I was able to use this video and these links to implement the new splash screen API. However, this required me to change the min SDK of the project from 19 to 21. When I did this, the splash screen worked but when I clicked the button to go from MainActivity2 to DetailActivity, the app would navigate to MainActivity instead. I am absolutely clueless as to why this happened because when I commented out all of the code related to the splash screen, the navigation went back to normal.
For now, I'm leaving out the splash screen until I figure out why this happens.
I was able to use this video and these links to implement the new splash screen API. However, this required me to change the min SDK of the project from 19 to 21. When I did this, the splash screen worked but when I clicked the button to go from MainActivity2 to DetailActivity, the app would navigate to MainActivity instead. I am absolutely clueless as to why this happened because when I commented out all of the code related to the splash screen, the navigation went back to normal.
For now, I'm leaving out the splash screen until I figure out why this happens.
Splash Screen API video: https://www.youtube.com/watch?v=4Dh09c_iWFU&ab_channel=CharfaouiYounes
Links to documentation on Splash Screen: