Android Programming Manual 1 Contents 1. ScanService/USS Communication ........................................................................................... 6 1.1. Enable/disable Scan2Key ..................................................................................................... 7 1.2. Scan2Key output method ...................................................................................................... 7 1.3. Initialize data receiving procedure ........................................................................................ 7 1.4. Receive scanned data ........................................................................................................... 8 1.5. Receive symbology data ....................................................................................................... 8 1.6. Save scanner settings ........................................................................................................... 8 1.7. Load scanner settings ........................................................................................................... 8 1.8. Close scan service ................................................................................................................ 9 1.9. Enable Scan Service ............................................................................................................. 9 1.10. Set Preamble ..................................................................................................................... 9 1.11. Set Postamble ................................................................................................................... 9 1.12. Set Terminator ................................................................................................................... 9 1.13. Set Vibration ...................................................................................................................... 9 1.14. Set Sound .......................................................................................................................... 9 1.15. Set Sound Frequency ...................................................................................................... 10 1.16. Set Sound Duration: ........................................................................................................ 10 1.17. Set EAN128 Field Separator ........................................................................................... 11 1.18. Set Intercharacter Delay .................................................................................................. 11 1.19. Set Keep Scan Timeout................................................................................................... 11 1.20. Intercharacter Delay ........................................................................................................ 11 1.21. Set Shake Scan ............................................................................................................... 12 1.22. Enable All Symbologies ................................................................................................... 12 1.23. Disable All Symbologies .................................................................................................. 12 1.24. Enable/Disable NFC Read .............................................................................................. 12 1.25. Change NFC Output Order ............................................................................................. 12 1.26. Set NFC Ignore Rate ....................................................................................................... 12 1.27. Send param command .................................................................................................... 12 1.28. Set Device Options .......................................................................................................... 32 1.29. Enable/Disable keyboard output ..................................................................................... 35 1.30. Receive scanned data and datatype ............................................................................... 35 1.31. Programming example .................................................................................................... 35 2. Tips using Scan2Key .............................................................................................................. 36 2.1. Want to know the barcode symbology ? ............................................................................. 36 2.2. The received data is longer the barcode data..................................................................... 36 2.3. Enable/Disable barcode scanning through HTML5 ............................................................ 36 3. Simple Data editing ................................................................................................................. 37 3.1. Enable data editings ............................................................................................................ 37 3.2. rule.txt .................................................................................................................................. 37 4. SOTI APIs ............................................................................................................................... 40 4.1. Disable Factory Reset ......................................................................................................... 40 4.2. Disable USB Media Player .................................................................................................. 40 4.3. Block OS upgrade ............................................................................................................... 40 4.4. Disable all 4 Keys ................................................................................................................ 41 4.5. Prevent Uninstall Apps ........................................................................................................ 41 4.6. Disable Account Addition .................................................................................................... 41 4.7. Disable Incoming SMS ........................................................................................................ 41 4.8. Disable Outgoing SMS ........................................................................................................ 41 4.9. Disable Incoming MMS ....................................................................................................... 42 4.10. Disable Outgoing MMS.................................................................................................... 42 5. Device Manager Interface(DMI) ............................................................................................. 43 5.1. Memory, Storage and CPU Related Functions ................................................................... 43 5.1.1. Get Total Built-In Internal Memory Size ................................................................... 43 2 5.1.2. Get Available Built-In Internal Memory Size ................................................................ 43 5.1.3. Get Total Extension Memory Size ............................................................................... 43 5.1.4. Get Available Extension Memory Size ......................................................................... 43 5.1.5. Get Total Storage Size................................................................................................. 43 5.1.6. Get Available Storage Size .......................................................................................... 43 5.1.7. Get CPU load ............................................................................................................... 44 5.2. Battery Related Functions ................................................................................................... 44 5.2.1. Get Battery Level ......................................................................................................... 44 5.2.2. Get Battery Charged .................................................................................................... 44 5.2.3. Get Battery Temperature ............................................................................................. 44 5.3. Display and Touch Related Functions ................................................................................ 44 5.3.1. Get Display Pixels ........................................................................................................ 44 5.3.2. Get Display Orientation ................................................................................................ 44 5.4. Camera Related Functions ................................................................................................. 45 5.4.1. Get Camera Present .................................................................................................... 45 5.5. GPS Related Functions ....................................................................................................... 45 5.5.1. 1.6.1 Get GPS Opened ................................................................................................ 45 5.5.2. 1.6.2 Get GPS Position ................................................................................................ 45 5.6. Bluetooth Related Functions ............................................................................................... 45 5.7. WLAN Related Functions ...................................................................................................
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages93 Page
-
File Size-