Showing posts with label Splash. Show all posts
Showing posts with label Splash. Show all posts

How to create a Splash Activity - best practices

In this small tutorial, I will explain how to add 2 types of splash activities in Android:

  1. Splash that shows a simple layout
  2. Splash that plays a movie


While working on different projects, I discovered that splash activities are really simple to create. You just create some xml layout for your activity, create the activity, and set a timer after a couple of seconds with a Runnable that starts another activity.

How to play a video from resources

As am getting lots of good feedback on my answer on SO for the question How to play a video from the raw or assets folder, I thought of writing this small tutorial on playing a video in your activity.