Code example for BufferedReader

Methods: closereadLine

0
		 
	public void filterStatus() { 
		String filterThreshold;
		try { 
	    	FileReader input = new FileReader("/sys/module/synaptics_i2c_rmi_1564/parameters/dup_threshold");
	    	BufferedReader reader = new BufferedReader(input);
	    	filterThreshold = reader.readLine();
	    	reader.close();
	    	input.close();
	     
	    	seekBar.setProgress(Integer.valueOf(filterThreshold));
	        seekBarValue.setText(filterThreshold);
	        if(Integer.valueOf(filterThreshold)>0) filter.setChecked(true);
		} catch (Exception e) {
			Log.d("X5 Settings", "Unexpected error: "+e.getMessage());
		} 
	} 
} 
Contextual code suggestions in your IDE  Get Codota for Java