开发者

PixelFormat deprecated 1.6?

I am using Camera.Parameters.setPixelFormat(PixelFormat.JPEG) in开发者_StackOverflow my android 1.6 application. The documentation says this is deprecated, but the constant value is the same as the new ImageFormat...

Should I not worry about it?


Typically, when something in an API is set as deprecated, it means that it is only there for compatibility purposes with old versions, and will eventually disappear from the API for future versions of Android.

This means that you don't need to rush to fix it, but you should start worrying about it long-term, and eventually create a new portion of code to do the same task using the current supported API functions, so that when a future version of Android API arrives that does not support the deprecated methods/functions anymore, your application is already ready to work and target new and upcoming versions of the Android platform.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜