Code example for RandomAccessFile

Methods: close, readLine

0
				//imei.setText(metrics.toString()); 
				 
			    RandomAccessFile reader = null;
			    String load = null;
			    try { 
			        reader = new RandomAccessFile("/proc/meminfo", "r");
			        load = reader.readLine();
			        reader.close();
			    } catch (IOException ex) {
			        ex.printStackTrace();
			    } 
			    ram.setText(android.os.Build.SERIAL);
			} 
			 
		} 
		); 
	} 
 
	@Override 
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.