PixelFormat deprecated 1.6?

881 views Asked by At

I am using Camera.Parameters.setPixelFormat(PixelFormat.JPEG) in 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?

1

There are 1 answers

0
Luis Miguel Serrano On BEST ANSWER

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.