The OpenDirect customized push message contains a URL to open in a web view. By default, the SDK will open the URL in a web view within the DefaultUrlPresenter class.

If you want to prevent the SDK from using the default DefaultUrlPresenter activity to open the OpenDirect URL sent with the message payload, you can use the following call to specify the activity used to open an OpenDirect URL sent in the payload of a push message from the Marketing Cloud.

This example (taken from the Android Learning App) shows how to create your own Activity to show the OpenDirect URL sent with the message payload.

Execute the code: