private void logHistory(){
		//Get the log file
		File log = new File(System.getProperty("user.home")+"/.history/log.txt");
		File folder=new File(System.getProperty("user.home")+"/.history");
		String next=System.getProperty("line.separator");
		
		//If the show button been pressed


		try {
			//If the log file not exist, create one
		    if(!folder.exists()){
		    	folder.mkdirs();
		    	
		    }
			
		if (!log.exists()) {

				log.createNewFile();
       } else {
			

				BufferedReader br = new BufferedReader(new FileReader(log));
				String str = null;
//				history.setText("");
				while ((str = br.readLine()) != null) {
					str.trim();
					String[] strList=str.split(" ");
					if (strList[0].equals(videoFile.getAbsolutePath())){
						if(strList[1].equals("start")){
							// set up the start
							
							
							
						}
						else{
							//set up the end
							
							
							
						}
						
					}
				}
			
		}
		}
		catch (IOException e1) {

			e1.printStackTrace();
		}

	
	}