Code example for ContextWrapper

Methods: getDir

0
     */ 
    private InstallationManager (Context context) {
        this.context = context;
         
        // Getting installation directory or creating a new one 
        ContextWrapper contextWrapper = new ContextWrapper(context);
        installDirectory = contextWrapper.getDir(INSTALL_DIRECTORY, Context.MODE_PRIVATE);
    } 
     
     
    /** 
     * Getting the instance of the installation manager. 
     * 
     * @param context the context 
     * @return the installation manager 
     */ 
    public static InstallationManager getInstallationManager(Context context) {
        return installationManager = (installationManager == null)? 
                new InstallationManager(context) : installationManager;
    } 
Connect your IDE to all the code out there  Get Codota for Java