Praveen Praveen - 10 months ago 69
Android Question

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

Sometimes I've some warnings in my project:


What does this mean?


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.