There are three types of deprecated API methods:
- Replaced: This API method has been replaced by another. In the Javadocs, these are indicated as follows:
public boolean addHomeShortcut (String pkgName) This method is deprecated. Use addHomeShortcut(String, String)
- Obsoleted: This API method is no longer used, but might still be backwards compatible. In the Javadocs, these are indicated as follows:
public int getDeviceKnoxId () This method is deprecated.
- Not supported: This API method will no longer work, and should be removed from apps.
We do not recommend that you use deprecated API methods. Although they may continue to be backwards compatible, there may be unexpected or unwanted behavior. Always replace the API methods that are no longer supported. Check the SDK release notes and Javadocs for these methods.