简体   繁体   English

为ICS准备应用程序

[英]Get an app ready for ICS

I have a few apps out there which are mostly written for the api level 8. Now when I start them on an avd running ice cream sandwich they all crash either immediate or after a while. 我那里有一些应用程序,这些应用程序大多是为api 8级编写的。现在,当我在运行avd的冰淇淋三明治上启动它们时,它们都会立即崩溃或一段时间后崩溃。 What I do not want to do now is to test all these applications and try to find errors simply because they were error-free before. 我现在不想做的是测试所有这些应用程序,并尝试仅由于以前没有错误而发现错误。

All information I have about ICS is the official difference report ( http://developer.android.com/sdk/api_diff/15/changes.html ) which basically tells you what has been changed where. 我所拥有的有关ICS的所有信息都是官方的差异报告( http://developer.android.com/sdk/api_diff/15/changes.html ),它基本上告诉您在哪里进行了更改。 That is very nice, but I am not nuts comparing all those methods to all my apps. 很好,但是我不怀疑将所有这些方法与我的所有应用程序进行比较。 I do believe that this is insane! 我确实相信这太疯狂了!

So what am I asking for is a tool having a look at my source code and pointing things out which will not run on ICS. 因此,我需要的是一种可以查看我的源代码并指出无法在ICS上运行的东西的工具。 Or am I missing something? 还是我错过了什么? Or is there more information? 还是有更多信息?

Follow up 跟进

After all the Android Developers Team has improved their plugin for Eclipse by a mile and all errors or warnings can be viewed in Android Lint and no more manually debugging should be necessary anymore. 在所有Android开发人员团队对Eclipse的插件进行了改进之后,所有错误或警告都可以在Android Lint中查看,并且不再需要手动调试

I agree with @matthewread .. this is the age old challenge of porting your software up the chain. 我同意@matthewread ..这是将软件移植到链上的古老挑战。 All's not lost, since what you'll usually find is that once you uncover a couple deltas and put some fixes in, the rest should fall into place. 一切都不会丢失,因为您通常会发现,一旦发现了几个增量并进行了一些修复,其余的就应该归位。 ICS is not that different on the whole. ICS总体上没有什么不同。

One way to do it is to add some logcat catches or additional debug points for debug info. 一种方法是为调试信息添加一些logcat捕获或其他调试点。 That way you can pick up more than you would normally pick up in your code as it generates exceptions. 这样,您可以比通常在代码中拾取的内容多,因为它会生成异常。 They will all be in logcat along with whatever events preceded and followed the exception. 它们都将与异常前后发生的所有事件一起进入logcat。 At that point you will have the problems in front of you. 届时,您将面临面前的问题。

BTW, the delta doc you're referring to should only be used to identify where to start looking for issues. 顺便说一句,您所指的增量文档仅应用于确定从哪里开始寻找问题。 Whatever Android services, calls etc.. that changed will be doc'd in there. 无论更改了什么Android服务,通话等,都将在其中记录。 Just find what you may be using and understand the changes, then turn to your software and debug... 只是找到您可能正在使用的东西并了解更改,然后转向您的软件并进行调试...

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM