Android的 - 在释放不同的行为签名版本?不同、行为、版本、Android

2023-09-06 09:16:13 作者:人生苦长烦躁

有一些非常奇怪的错误与我在一分钟的Andr​​oid应用程序,它从我的Eclipse运行它,它运行良好,pretty的多完美。

Having some really strange "bugs" with my Android application at the minute, it I run it from Eclipse it runs fine, pretty much perfect.

它包含了我可以通过Eclipse中运行时访问,并获得我的主画面细腻登录屏幕。当我preSS的home键,返回到我的应用程序返回到最后一个位置(活动)的应用进行了研究。

It contains a login screen that I can access and get to my main screen fine when running through Eclipse. When I press the home key and return to my application it returns to the last position (Activity) the application was in.

然而,当我释放签署建设和设备上部署它有不同的行为,不用通过登录画面时,我preSS回家,然后返回给应用程序的登录屏幕的总是出现。

However when I release sign a build and deploy it on the device it has different behavior,after going through the login screen when I press home and then return to the application the login screen always appears.

code是相同的两个版本,唯一的区别在于一个是用默认的调试密钥库签署,而另一种是用我自己的版本的密钥库签署。

Code is identical in both builds, only difference is one is signed with the default debug keystore while the other is signed with my own release keystore.

有没有人遇到过吗?它真的很困惑!

Has anyone come across this? Its really confusing!

编辑:更多信息:

应用程序目前是这样的:

The application currently works like this:

主要活动启动,然后调用登录活动,登录活动然后移动到我的应用程序的核心活动。

Main activity is launched which then calls the login activity, login activity then moves to my app core activity.

我还发现,它似乎是在第一次运行安装后,我有这个问题,如果我运行的应用程序,强制关闭,然后再次运行它,然后运行完全没有任何问题。

I have also discovered that it appears to be on the first run after install that I have the issue, if I run the app, force close it and then run it again it then runs perfectly without any issue.

因此​​,似乎有什么东西真的很奇怪?

So it seems to be something really strange?

推荐答案

您可以配置Eclipse使用相同的密钥库?

Can you configure Eclipse to use the same keystore?

我使用Ant脚本,它安装我的调试应用程序用于我发表的版本相同的密钥,所以我还没有看到这个问题。

I use an Ant script, which installs my 'debug' application with the same key used for my published versions, so I have not seen this issue.

 
精彩推荐
图片推荐