app/src/main/java/com/vdocipher/sampleapp/MainActivity.java
/**
     * On resume, check to see if we flagged that we need to reinstall the
     * provider.
     */
On resume, check to see if we flagged that we need to reinstall the
provider.
On resume check to see if we flagged that we need to reinstall the provider .
@Override
    protected void onPostResume() {
        super.onPostResume();
        if (retryProviderInstall) {
            ProviderInstaller.installIfNeededAsync(this, this);
        }
        retryProviderInstall = false;
    }
@ Override protected void onPostResume ( ) { super . onPostResume ( ) ; if ( retryProviderInstall ) { ProviderInstaller . installIfNeededAsync ( this , this ) ; } retryProviderInstall = false ; }
On resume, check to see if we flagged that we need to reinstall the
 provider.
On resume check to see if we flagged that we need to reinstall the provider .
// We can now safely retry installation.