android - Launcher Activity not calling when app came from background to foreground in android
问题描述
<activity
android:name=".activity.SplashScreenActivity"
android:launchMode="singleInstance"
android:screenOrientation="portrait"
android:theme="@style/Theme.TescoWelcome">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="com.myrealapp.android.PAY" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="com.myrealapp.android.GHS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="www.myreal.com"
android:pathPrefix="/clubcard"
android:scheme="https" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="*"
android:scheme="real-myapp" />
</intent-filter>
</activity>
<activity
android:name=".features.welcome.view.WelcomeActivity"
android:screenOrientation="portrait"
android:theme="@style/Theme.MYREALAPP" />
This is my activity I am trying to update the app from google play from the current version to a new version which is in play store what happened in that case when we kill the app and try to update the app in that case launcher activity call but when we go in welcome activity and minimize app then go in google play try to update the app in that case what happened Launcher activity on creating not calling it to call welcome activity which is next of splash activity. please I don't know why this behavior in the android app ideally it should call launcher activity which is Splashscreen. please help me in this issue what I am doing wrong?
解决方案
推荐阅读
- botframework - 是否可以将具有不同品牌的另一个机器人加载到 Teams 应用程序?
- java - 如何将动作事件侦听器的多个结果添加到对话框
- build - 从 Azure DevOps 管道启动时,XRay 扫描未找到任何手表
- active-directory - 如何获取 Active Directory 中内置组的成员?
- aws-api-gateway - 使用 AWS SAM 嵌套应用程序构建大型 API 网关的正确方法是什么?
- azure - 无法使用自定义域访问 Azure Blob
- ios - Swift 中的 React-native iOS 桥接模块
- google-cloud-dataflow - 如何在数据流中读取大小为 10+ GB 的文件?
- c++ - 在 if 语句中检查字符串
- c++ - 如何创建结构的实例,当它超出范围时不会被删除?