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.
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.
Create an activity and register it in the AndroidManifest.xml file.
This activity runs the desired process.
Add the intent filter to the activity you just created in the manifest. The filter resembles the example.
<intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter>
startActivity(new Intent(this, SDKSplashActivity.class))after the process completes.