All Products
Search
Document Center

Mobile Platform as a Service:Configure startup page

Last Updated:Jan 12, 2026

startup page ads are also known as splash screen ads. A startup page appears after the application starts and the framework is initialized. It disappears when the home page appears.

After configuring the startup page on the client, you can configure the Splash booth information and advertisement content on the console side.. For more information, see Create a booth and Create an activity . Set the fatigue control for the startup page booth to 'Disappear after xx seconds'. The application retrieves and displays the booth data based on the configuration. The page closes after a countdown of xx seconds. This process enables the dynamic delivery and display of delivery data.

Note

Since the download of delivery data is an asynchronous process, in order not to block the application's startup, after configuring the delivery for the startup page, only the download operation is performed initially, caching the images locally. The previously cached images will then be displayed during the next application launch.

The timing and operation of the startup page in the mPaaS framework are as follows:

  1. After the framework starts, the main thread creates and initializes LauncherActivityAgent. The LauncherActivityAgent.postInit callback method then opens the home page.

  2. The home page checks for and opens the startup page.

Usage example

  1. Initialize the startup page on the home page.

         @Override
     protected void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         // Home page logic
         // ........
         // ........
         // ........
         if (SplashActivity.checkIfSplashPrepared()) {
             startSplash();
         }
     }
    
     private void startSplash() {
         startActivity(new Intent(this, SplashActivity.class));
         overridePendingTransition(0, 0); // Remove the transition animation
     }
  2. Display the startup page in SplashActivity.

     private void doSplash() {
         final CdpAdvertisementService cdpAdvertisementService = cpdService();
         cdpAdvertisementService.doSplash(this, new HashMap<String, String>(), new CdpAdvertisementService.IAdEventHandler() {
             @Override
              public void onClosed(SpaceInfo spaceInfo) {
             }
    
             @Override
             public void onJump(SpaceInfo spaceInfo) {
                 // Jump to the campaign target page
             }
         });
     }
    
     public static CdpAdvertisementService cpdService() {
         CdpAdvertisementService serviceByInterface = LauncherApplicationAgent.getInstance().getMicroApplicationContext().findServiceByInterface(
             CdpAdvertisementService.class.getName());
         return serviceByInterface;
     }