I fill a TextView like this:
TextView instructions=(TextView)
findViewById(R.id.batteryInstructionsText);
try {
InputStream instrStr=res.openRawResource(R.raw.instructionsfile);
byte [] text=new byte[580];
int i=instrStr.read(text);
instructions.setText(new
Simone,
You are using a byte array to read your data. When converting a byte
array to a String, you should specify encoding.
My guess is it's Western European, so you'd do:
new String(someByteArray, iso-8859-1)
Also your code tries to convert the entire byte array to String and then
2 matches
Mail list logo