[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003e\u003ccode\u003ePreviewActivity\u003c/code\u003e is used to preview an app with a non-published container version.\u003c/p\u003e\n"],["\u003cp\u003eTo enable the preview function, add a specific snippet to your AndroidManifest.xml, replacing \u003ccode\u003e<package_name>\u003c/code\u003e with your app's package name.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePreviewActivity\u003c/code\u003e prepares the preview environment and then launches the main activity of your application.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits constants from \u003ccode\u003eandroid.app.Activity\u003c/code\u003e, \u003ccode\u003eandroid.content.Context\u003c/code\u003e, and \u003ccode\u003eandroid.content.ComponentCallbacks2\u003c/code\u003e.\u003c/p\u003e\n"]]],["The `PreviewActivity` class allows app preview with a container version. To enable this, the app's `AndroidManifest.xml` must include an activity declaration for `PreviewActivity`, specifying the custom scheme `tagmanager.c.\u003cpackage_name\u003e` in its intent filter. This activity uses `onCreate` to prepare for previewing an unpublished container, subsequently launching the app's main activity. It includes constants inherited from `android.app.Activity`, `android.content.Context` and `android.content.ComponentCallbacks2`, alongside public constructor and method.\n"],null,[]]