Making a android application where user would an ID, then click submit. Using that id it will search the text file and if found it would display the content in separate textviews.
txt file would look like this, with each content separated by a comma (",")
541,BoB,05-18-2014
483,Phil,01-19-1992
971,Komarov,10-30-1858
The text file is located in the res/raw/players.txt
Have an onClick handler for the button. I'm a little unsure of what type of reader I should use and how to search its contents. So far I have,
try {
Resources res = getResources();
InputStream ins = res.openRawResource(R.raw.players);
byte[] b = new byte[ins.available()];
ins.read();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
System.out.print("error, cant read");
}