Code example for FileReader

Methods: close

0
	    	settings[1] = reader.readLine();
	    	 
	    	reader.close();
	    	input.close();
	    	 
	    	input = new FileReader("/etc/volumefactor.txt");
	    	reader = new BufferedReader(input);
	    	 
	    	settings[2] = reader.readLine();
	    	 
	    	reader.close();
	    	input.close();
	    	 
	    	if (Integer.valueOf(settings[0])==1) forceHeadset.setChecked(true);
	        if (Integer.valueOf(settings[1])==1) speakerphoneEcho.setChecked(true);
	        seekBar.setProgress(Integer.valueOf(settings[2]));
		} catch (Exception e) {
			Log.d("X5 Settings", "Unexpected error: "+e.getMessage());
		} 
	 
Stop searching for code, let great code find you!  Add Codota to your java IDE