¡@

Home 

2014/10/16 ¤W¤È 08:27:46

android Programming Glossary: writethread

Parsing data from hdp device for android (API 15)

http://stackoverflow.com/questions/10402291/parsing-data-from-hdp-device-for-android-api-15

if data 0 byte 0x00 String test byte2hex data Log.i TAG test if data 0 byte 0xE2 Log.i TAG E2 count 1 new WriteThread mFd .start try sleep 100 catch InterruptedException e e.printStackTrace count 2 new WriteThread mFd .start .. 1 new WriteThread mFd .start try sleep 100 catch InterruptedException e e.printStackTrace count 2 new WriteThread mFd .start else if data 0 byte 0xE7 Log.i TAG E7 work for legacy device... if data 18 byte 0x0d data 19 byte 0x1d.. report count 3 set invoke id so get correct response invoke new byte data 6 data 7 write back response new WriteThread mFd .start parse data int length data 21 Log.i TAG length is length check data req id int report_no data 22 3..