Google is committed to advancing racial equity for Black communities. See how.

PreviewActivity

public class PreviewActivity extends Activity

An Activity to preview the app with previewed container version.

To use the preview function, the app should add the following snippet into its AndroidManifest.xml (where <package_name> needs to be replaced by your package name):

<activity android:name="com.google.android.gms.tagmanager.PreviewActivity"
                  android:label="@string/app_name">
      <intent-filter>
              <data android:scheme="tagmanager.c.<package_name>"/>
              <action android:name="android.intent.action.VIEW"/>
              <category android:name="android.intent.category.DEFAULT"/>
              <category android:name="android.intent.category.BROWSABLE"/>
      </intent-filter>
 </activity>
 

Inherited Constant Summary

Inherited Field Summary

Public Constructor Summary

Public Method Summary

void
onCreate(Bundle savedInstanceState)

Prepares for previewing a non-published container and then launches the launch activity for this package.

Inherited Method Summary

Public Constructors

public PreviewActivity ()

Public Methods

public void onCreate (Bundle savedInstanceState)

Prepares for previewing a non-published container and then launches the launch activity for this package.