德precated类新在Androidprecated、Android

2023-09-06 03:22:04 作者:①軰孓de諾娮

我一直在对Android 4.0的一个项目,我已经遇到了一些德precated类型较新版本的Andr​​oid。黑线已发生上的pcated德$ P $的东西的名称。然而,尽管黑线和去precation警告,我仍然可以使用这些去precated类和项目运行成功。我困惑的德precation。如果他们去precated如何我还可以使用他们的又是什么去precation意味着什么?如果我用的是德precated班在我的项目,有什么可以是可能的弊端,该项目的用户可能会遇到?

I have been making a project on Android 4.0 and I have faced some deprecated types for the newer versions of Android. A black line has occured on the name of the deprecated things. However, in spite of the black line and the deprecation warnings, I can still use those deprecated classes and project is running successfully. I got confused about the deprecation. If they are deprecated how can I still use them and what does deprecation mean exactly? If I use the deprecated classes in my project, what can be the possible disadvantages that the project users can encounter?

感谢您的阅读。

推荐答案

德precated意味着他们很可能会在平台的未来版本中被删除,所以你应该开始寻找替代它们在你的$ C $℃。

Deprecated means that they are likely to be removed in a future version of the platform and so you should begin looking at replacing their use in your code.

如果他们只是删除了类型,然后建立将打破,人们也不会快乐!

If they just removed the types then builds would break and people wouldn't be happy!

在他们会对您的应用程序的用户造成的影响方面,不应该有在所有任何影响。但是,当你来到更新软件到Android的下一个版本,你可能会发现德precated类型不再有和你的构建将打破。

In terms of the effect they will have on your application's users, there shouldn't be any effects at all. However, when you come to update your software to the next version of Android you may find that the deprecated types are no longer there and your build will break.

维基百科上有一个很好的文章在这里: http://en.wikipedia.org/wiki/Deprecation

Wikipedia has a good article on it here: http://en.wikipedia.org/wiki/Deprecation

 
精彩推荐