Praveen Praveen - 1 year ago 96
Android Question

What is @SuppressWarnings("deprecation") and ("unused") in Android?

Sometimes I've some warnings in my project:


What does this mean?

Answer Source

The @SuppressWarnings annotation disables certain compiler warnings. In this case, the warning about deprecated code ("deprecation") and unused local variables or unused private methods ("unused"). This article explains the possible values.