Code example for ActivityNotFoundException

0
                context.startActivity(starter);
            } else { 
                throw new ActivityNotFoundException("Null intent while starting activity");
            } 
        } else { 
            throw new ActivityNotFoundException("Failed to retrieve the package manager");
        } 
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java