How to display contents of a byte array using AlertDialog properly. I’ve tried with below code
try {
FileInputStream in = m_context.openFileInput("Test.txt");
byte buf[] = new byte[1024];
in.read(buf);
in.close();
new AlertDialog.Builder(m_context).setTitle("Alert").setMessage(buf.toString()).setNeutralButton("Close", null).show();
} catch( Exception e) {
e.printStackTrace();
}
what out i got displayed below

i think the value is memory address
please correct me
thanks
You should have to use BufferedReader.