Edit in GitHubLog an issue
Copied to your clipboard
public class MainApp extends Application {
private static final String ENVIRONMENT_FILE_ID = "<your_environment_file_id>";
@Override
public void onCreate() {
super.onCreate();
MobileCore.setApplication(this);
MobileCore.configureWithAppID(ENVIRONMENT_FILE_ID);
List<Class<? extends Extension>> extensions = new ArrayList<>();
extensions.add(Lifecycle.EXTENSION);
extensions.add(Signal.EXTENSION);
extensions.add(UserProfile.EXTENSION);
extensions.add(Assurance.EXTENSION);
extensions.add(Identity.EXTENSION);
MobileCore.registerExtensions(extensions, o -> {
Log.d(LOG_TAG, "Adobe Experience Platform Mobile SDK is initialized");
});
}
}
Copied to your clipboard
class MyApp : Application() {
val ENVIRONMENT_FILE_ID = "<your_environment_file_id>"
override fun onCreate() {
super.onCreate()
MobileCore.setApplication(this)
MobileCore.configureWithAppID(ENVIRONMENT_FILE_ID)
val extensions = listOf(
Identity.EXTENSION,
Signal.EXTENSION,
Lifecycle.EXTENSION,
UserProfile.EXTENSION,
Assurance.EXTENSION
)
MobileCore.registerExtensions(extensions) {
Log.d(LOG_TAG, "Adobe Experience Platform Mobile SDK is initialized")
}
}
}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2025 Adobe. All rights reserved.