1. Are you ready for the Galaxy S20? Here is everything we know so far!

USB communication

Discussion in 'Android Development' started by 2Chri, Jan 16, 2016.

  1. 2Chri

    2Chri Lurker
    Thread Starter

    Hello,
    I have a pcb that comunicates but when I read the byte that the microcontroller sends to tablet is trasformed. For instance the 0x01 that microcontrollers sends the android program show this nymber as -63. I read that bytes in java is always signed and I have to make logic AND (&) in order to transform the -63 to 1. Could anyone explain me why a byte is signed in java?
     


    #1 2Chri, Jan 16, 2016
    Last edited: Jan 16, 2016

    1. Download the Forums for Android™ app!


      Download

       
Loading...

Share This Page

Loading...