i have an ArrayOfByte like this:
byte[] arrayOfByte = new byte[1024]
It contains array of 1,2,3,4 inside it randomly..
Assume there are about 100 Byte data in it,
my question is how to extract byte by byte data from it :
it i use Log.d(TAG, "arrayOfByte :"+arrayOfByte); it will display arrayOfByte :[B@2b052c60
now i want to extract each byte separately and display: 1,1,2,1,3,3,3,2,2,1,4,4,4,2,3,3,3... like this
UPDATE: Thanks Sumit Singh, it worked ..
now suppose we display: [1,1,1,2,3,2,2,2,1,1,1,0,0,0,0,0,0,0]
Question1: how to put these values in some int[] series
Question2: can i delete few starting elements from it and make it [2,2,1,1,1,0,0,0,0,0,0,0]