Objective
This chapter is Android.bluetooth.BluetoothClass.Device, for the Android Bluetooth section of the chapter translation, version of the Android 2.3 R1, translated from Zhongshan University's "Android Club Sysu", Welcome to their wiki:http://www.android-wiki.net, thanks again for "Android Club Sysu"! Look forward to your participation in the translation of the Android Chinese API, contact me [email protected].
Statement
Welcome reprint, but please keep the original source of the article:)
Android Club sysu:http://www.android-wiki.net
Blog Park: http://www.cnblogs.com/
Android Chinese translation group: http://code.taobao.org/project/view/404/
Body
First, the structure
Public final class Bluetoothclass.device extends Object
Java.lang.Object
Android.bluetooth.BluetoothClass.Device
Ii. Overview
To define all device class constants
Each BluetoothClass
encodes a device class with a primary and a smaller part.
BluetoothClass.Device
The constants in represent the combination of the primary and the small part of the device class (the complete device Class).
BluetoothClass.Device.Major
Constants can only represent the primary device class.
See服务类的常量
BluetoothClass.Service
。
Iii. Internal class
class BluetoothClass.Device.Major
defines all the major device class constants
Iv. Constants
int Audio_video_camcorder
int Audio_video_car_audio
int Audio_video_handsfree
int Audio_video_headphones
int Audio_video_hifi_audio
int Audio_video_loudspeaker
int Audio_video_microphone
int Audio_video_portable_audio
int Audio_video_set_top_box
int audio_video_uncategorized
int AUDIO_VIDEO_VCR
int Audio_video_video_camera
int audio_video_video_conferencing
int Audio_video_video_display_and_loudspeaker
int Audio_video_video_gaming_toy
int Audio_video_video_monitor
int Audio_video_wearable_headset
int Computer_desktop
int COMPUTER_HANDHELD_PC_PDA
int Computer_laptop
int COMPUTER_PALM_SIZE_PC_PDA
int Computer_server
int computer_uncategorized
int computer_wearable
int Health_blood_pressure
int Health_data_display
int Health_glucose
int Health_pulse_oximeter
int Health_pulse_rate
int Health_thermometer
int health_uncategorized
int health_weighing
int Phone_cellular
int phone_cordless
int PHONE_ISDN
int Phone_modem_or_gateway
int Phone_smart
int phone_uncategorized
int Toy_controller
int Toy_doll_action_figure
int Toy_game
int Toy_robot
int toy_uncategorized
int toy_vehicle
int wearable_glasses
int Wearable_helmet
int Wearable_jacket
int Wearable_pager
int wearable_uncategorized
int Wearable_wrist_watch
End
Here the constant translation is empty, because the original text also has no comment, here also for the time being empty first, later found the material to fill up.
Android Chinese API (--bluetoothclass.device)