2

My android application receive binary data as UDP packet , how should I convert that in android to ASCII ?

Aida E
  • 1,098
  • 2
  • 21
  • 40

1 Answers1

4

Try the following:

byte [] data = (however you extract data from your source);
String result = new String(data, "iso-8859-1");
Xenon
  • 3,128
  • 17
  • 37
Jules
  • 14,135
  • 8
  • 79
  • 128