Mobinius Technologies Pvt. Ltd.
May I help you?
May I help you?
Please leave a message with your contact details. Our representative will get in touch with you soon.

Branding your Android App, the Google way

In our mobile influenced life we are using many apps on your smartphone, you may be wondering how these apps are branded – specifically for splash screen with app logo. This blog throws some light on the same

 In general, android app launch has been classified into

  • Cold Start Time (Similar to the first time launch, no resources are referenced in your memory)
  • Warm Start Time (Your app has the references in memory, it will not recreate it)

Most of our apps in the playstore have not utilised the cold start time efficiently to show the splash pages. We can start our android applications the same way how Google(Youtube, Google Play Music, Google Play Movies) starts its apps.

WHAT IS COLD START TIME:

Time taken to show the splash page from the moment user taps on the launcher icon in home screen.

HOW MUCH IS YOUR APP’S START TIME:

To measure the start time of your app you can use the android studio where in the logcat you can see

ActivityManager: Displayed com.edcontrol.edcontrols/.StartupTiming: +597ms

We will now use this cold start time to provide branding to your application. Now before we try to use the start time efficiently, we will see what are the advantages of it.

  • Users won’t see any black/white screen when your app takes time to load its resources/DB creations.
  • App looks much faster, right from the go.
  • Also removes the extra overdraw(Makes impact on performance).

ed_splash

CHANGES TO MAKE:

Styles:

In the styles.xml add a new style name say “launcher” with an item called windowBackground.

<style name="AppTheme.Launcher">
 <item name="android:windowBackground">@layout/splash_activity</item>
</style>

XML:

In the above code snippet the splash_activity refers to the xml file which contains your logo and its contents for branding.<layer-list xmlns:android=“http://schemas.android.com/apk/res/android” android:layout_width=“match_parent” android:layout_height=“match_parent” android:opacity=“opaque”>

<item android:drawable=“@android:color/white”/>

<item>

      <bitmap
       android:src=“@drawable/splash_screen_logo”
      android:gravity=“center”/>
</item>

</layer-list>

Manifest.

Set a particular theme for your splash activity.

	android:theme="@style/AppTheme.Launcher"
Activity	

No need to set the content view for the splash activity.

By following these changes to your application you can avoid displaying black/white screens in your app and avoid extra overdraw.

Default Launch                                               Launch after changes.

 

Prem Raj

  • Sanjeev Kumar

    Hi Prem,
    Very -2 Thanks for sharing this important knowledge.
    From current application onward, will implement this concept for displaying Splash Screen.