Skip to content

Tag: deprecated

‘canAuthenticate()’ is deprecated in android

What should I use instead of biometricManager.canAuthenticate() is deprecated. Doc says This method is deprecated. Use canAuthenticate(int) instead. How to use canAuthenticate(int) like the above manner. Answer The direct replacement for your code would look something like: According to the javadoc, the possi…

Deprecated Short(String) how to update?

I’m handling this problem: Short appears deprecated with a mark. How can I update this for above Java 9 versions? (Now, I have Java 11) Answer You shall use Short.valueOf. This is taken from the javadoc Deprecated. It is rarely appropriate to use this constructor. The static factory valueOf(short) is ge…