More iPhone UI Goodness

Posted: February 28, 2010 in Android
Tags: ,

Title bar flashing was removed by sticking:

android:theme="@android:style/Theme.NoTitleBar"

..in the first activity. Music was added to first activity(sorry about no sound in the video..still figuring out gtk-recordmyDesktop and my soundcard):

 final MediaPlayer mp = MediaPlayer.create(Splash3d.this, R.raw.welcome2jungle_remix);
         try {
			mp.prepare();
		} catch (IllegalStateException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
         mp.start();

What is next is to override the transition to the next activity using overridePendingTransition() which is an Android 2.0 feature. Prior to Android 2.0 you would do it manually in each activity being triggered by a hander timer.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s