When is it advisable to use a deprecated method in android

I was about to use Sound Pool for Android when I noticed it was out of date. Should I try to find a new version every time, or just use a deprecated method?

+3


source to share


2 answers


The real answer? Never.



It is deprecated for some reason. Deprecated methods are methods that will not be updated and may not be supported at all. Try to find the newest way to do what you want to do with the most modern API.

+3


source


From: http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Deprecated.html

A programming element annotated with @Deprecated is something that programmers are discouraged from using, usually because it is dangerous or because there is a better alternative.



There is a better way to do this, but that doesn't mean you can't. You are probably safe, but you need to keep an eye on performance, especially for Android.

+1


source







All Articles