To run a process before initialization in your SDK-built application, edit the AndroidManifest.xml file and customize an activity.

Use this optional procedure to run processes that analyze the environment into which the application is deployed. For example, run a process to determine if your application needs to start the SDK in a specific environment.

  1. In the AndroidManifest.xml file, remove the launcher tag <category android:name="android.intent.category.LAUNCHER" />.

    You add the tag in the placeholder activity you create to run your process.

  2. Create an activity and register it in the AndroidManifest.xml file.

    This activity runs the desired process.

  3. Add the intent filter to the activity you just created in the manifest. The filter resembles the example.

                            <action android:name="android.intent.action.MAIN" />
                            <category android:name="android.intent.category.LAUNCHER" />
  4. Call startActivity(new Intent(this, SDKSplashActivity.class)) after the process completes.