在点击快捷方式在主屏幕发射从安卓spalsh屏快捷方式、屏幕、spalsh

2023-09-07 09:38:12 作者:带刺的仙人掌

我在mainfest文件reated配置如下

I reated configuration in mainfest file as follows

快捷方式在主屏幕上创建的,但问题是,当我点击这个它不保持状态正确,它是从初始屏幕开始。当我启动的所有应用程序的应用程序是正确的保持状态。

shortcut is created on homescreen, but the problem is when i click on this it is not retaining the state correctly, it is starting from splash screen. when i launch an app from all apps it is retaining the state correctly.

MYAPP - >启动画面 - >活动1 - >活性2 - >点击首页 - >点击shortcuticon - >闪屏

Myapp-->splashscreen-->Activity1-->Activity2-->click home-->click shortcuticon-->splashscreen

MYAPP - >启动画面 - >活动1 - >活性2 - >点击首页 - > - >点击菜单 - >所有的应用程序 - >点击shortcuticon - >活性2

Myapp-->splashscreen-->Activity1-->Activity2-->click home-->-->click menu-->all apps-->click shortcuticon-->Activity2

推荐答案

我会假设你从一个IDE(如Eclipse或的IntelliJ)开始了最初的应用程序(第一次),或者使用安装后,安装程序(从文件浏览器上的APK市场或浏览器或点击)。如果是这样,这是Android的(一个已知的bug请参见 HTTP: //$c$c.google.com/p/android/issues/detail?id=26658 )。很多人一直在努力了好几天追逐这个问题: - (

I'm going to assume that you started the app initially (the first time) from an IDE (like Eclipse or IntelliJ) or after installing it using the installer (from the market or browser or clicking on APK in file browser). If so, this is a known bug in Android (see http://code.google.com/p/android/issues/detail?id=26658 ). Many people have struggled for days chasing this problem :-(

有一个简单的解决这一问题可以在的 HTTP://$c$c.google.com/p/android/issues/detail ID = 2373#C21

A simple workaround for this problem can be found at http://code.google.com/p/android/issues/detail?id=2373#c21

要验证这是你的问题,不从IDE或安装程序启动它。只需安装应用程序,然后再从可用的应用程序列表中启动它。

To verify this is your problem, don't start it from the IDE or installer. Simply install the app and then go start it from the list of available applications.