I'm making an app where it uses intent to send data to certain third party app. In case, the third party app is installed (and is in enabled state), the app works fine. If the app is not installed, I can redirect user to play store to download it.
BUT if the app is disabled (not uninstalled but DISABLED by user), then my app crashes. So here I want to know how to get "enabled" or "disabled" state of an app and work accordingly.
It is like :
if (appIsDisabled) {
//Display toast message to user asking them to enable the app
} else {
//Continue with the work }
Aucun commentaire:
Enregistrer un commentaire