Code example for ContextWrapper

Methods: getDir

0
		} 
	} 
	 
	 
	private String rsync_path() {
		ContextWrapper cw = new ContextWrapper(getBaseContext());
		File directory = cw.getDir("bin", Context.MODE_PRIVATE);
		String rsync_abspath = directory +"/";
		return rsync_abspath;
	} 
 
	 
	/* 
	private String getUsername() { 
		String temp=""; 
		try{ 
    		Process p = Runtime.getRuntime().exec("whoami"); 
			p.waitFor(); 
			 
			BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream())); 
			while ( (temp = stdInput.readLine()) != null ) {