[英]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.