我正在使用Chrome自定义标签来显示网页浏览:一切正常。
如果用户点击“关闭”按钮,则启动该标签的活动不会恢复,用户只会看到我的Android的“主屏幕”。
启动意图以这种方式配置:
CustomTabsHelper.AddKeepAliveExtra(ParentActivity, customTabsIntent.Intent);
启动活动在清单中有此定义:
<activity android:label="StartupView" android:noHistory="true" android:screenOrientation="portrait" android:name="md533c5c955946a288d55ba44dbb1f39685.StartupView">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="jonathanantoinetvstandroid" />
</intent-filter>
</activity>
你能帮我:)?
答案 0 :(得分:0)
所以我想出了我面临的问题:我在“启动活动”中设置了android:noHistory =“true”。所以一定要把它设置为假。