作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
第 1 步:点击应用程序图标打开一个启动画面,然后出现一个登录屏幕,其中包含编辑文本字段。
第 2 步:最小化应用程序,转到主屏幕,然后单击应用程序图标。
预期结果:应该从我离开的地方开始。
实际结果:它是从启动画面开始的。
这是 list 代码 fragment :
<application
android:icon="@drawable/app_icon"
android:label="@string/app_name"
android:largeHeap="true"
android:roundIcon="@drawable/app_icon"
android:supportsRtl="true"
android:theme="@style/AppThemeMain">
<activity
android:name=".SplashActivity"
android:label="@string/app_name"
android:launchMode="singleTask"
android:noHistory="true"
android:screenOrientation="portrait"
android:theme="@style/AppThemeMain">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
最佳答案
最后,我通过删除 android:launchMode="singleTask"
解决了它来自我们的manifest
.
关于android - 最小化并单击应用程序图标,应用程序不应从启动开始,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47156952/
我是一名优秀的程序员,十分优秀!