简体   繁体   English

从主屏幕启动应用程序图标进入主活动,而不是恢复当前状态

[英]Starting application from Home screen Icon coming to main Activity instead of reataing the current state

In my application i am starting another activity without finishing the first one becuase i am handling on activity result of the started activity. 在我的应用程序中,由于我正在处理已启动活动的活动结果,因此我没有完成第一个活动就开始了另一个活动。

Now the problem which I am facing in this case is while clicking on the icon present on home screen taking me again on the main Activity and the started activity is also present on background. 现在,在这种情况下,我面临的问题是单击主屏幕上显示的图标时,再次使我进入主活动,而启动的活动也显示在背景上。

And if I am launching the application by long pressing the home button i am coming to the current state of application but it should come in case of home screen icon click also. 如果我通过长按主屏幕按钮启动应用程序,则我将进入应用程序的当前状态,但如果还单击主屏幕图标,它也应该会出现。

I am not getting what the issue is ?? 我没有得到什么问题?

I found this is a device issue not the application one because it is working fine with other devices with the same model as well as OS . 我发现这是设备问题,而不是应用程序问题,因为它可以与具有相同型号和操作系统的其他设备正常工作。 The device is having 2.3.6 in it and I have also tested it in other devices and in that case also worked as expected so i think it the device problem only. 该设备中有2.3.6,我也已经在其他设备中对其进行了测试,在这种情况下,它也按预期工作,因此我认为这只是设备问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从主屏幕返回后,当前活动(具有SingleTask launchMode)不会恢复(而是调用启动器活动的onNewIntent) - Current Activity (with SingleTask launchMode) does not Resume after returning from Home Screen (Calls onNewIntent for launcher Activity instead) 从Activity而不是父级返回主屏幕 - Returning to home screen from Activity instead of parent 在升级时从主屏幕删除应用程序图标 - Application icon removed from home screen on upgrade 从设置中按返回按钮,它将返回主屏幕,而不是当前活动 - onPress of back button from settings it returns to home screen not the current activity 在主(主)屏幕默认设置应用程序图标 - Setting app icon on home(main) screen default Android:从主屏幕小部件启动应用程序活动的新实例 - Android: Launch new instance of application activity from home screen widget 从MAIN重新启动应用程序并清除活动堆栈 - Starting Application Again from MAIN & Clearing the activity stack 应用程序从后台重新启动主要活动而不是恢复以前的状态 - App restarts main activity from background instead of resuming previous state 如何使主屏幕应用程序图标始终在android上启动相同的活动 - how to make the home screen application icon always launch the same activity on android 转到主屏幕而不是之前的活动 - Go to home screen instead of previous Activity
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM