daily pastebin goal
16%
SHARE
TWEET

Untitled

a guest Feb 22nd, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. final byte[] texttoprint = new byte[]{0x1b, 0x40, 0x1b,0x74,0x0D,(byte) 0x91,(byte) 0x92,(byte) 0x93,(byte) 0x94,(byte) 0x95,(byte) 0x96,(byte) 0x97,(byte) 0x98,(byte) 0x99,0x0A,0x0A,0x0A,0x0A,0x0A};
  2.    
  3. 0x1b , 0x40
  4.    
  5. for (int index = 0; index < texttoprint.length;){
  6. Log.i("myactivity", String.format("%20x", texttoprint[index]));
  7. }
  8.    
  9. Log.i("myactivity", Arrays.toString(texttoprint));
  10.    
  11. for (int index = 0; index < texttoprint.length; index++){
  12.  Log.i("myactivity", String.format("0x%20x", texttoprint[index]));
  13. }
  14.    
  15. for (byte b: texttoprint){
  16.  Log.i("myactivity", String.format("0x%20x", b));
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top