• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Transitions Between Activities

I have been following a "How-To" book to get my feet wet in Android Development. I'm currently trying to create an app with multiple Activities (Splash Screen, Main Menu, ect). I can't figure out how to transition from activity to activity while the app is running. (Example: app opens to Splash Screen which has a 5 second animation, but then after the 5 seconds it will remain on the Splash Screen instead of going to the menu)

The book doesn't include any code examples and I can't figure it out. Anyone have any basic ideas on what I'm doing wrong that I could build off of?

Thanks in advance
-spacecam
 
you need to use the startActivity() or startActivityForResult() method.

create an Intent with parameters 'context' & 'MyNewActivity.class'
call startActivity() with parameters 'context' & 'myIntent'
 
Back
Top Bottom