本文整理自网络,侵删。
uses Androidapi.JNI.Bluetooth;
procedure TForm2.Button1Click(Sender: TObject);var Adapter: JBluetoothAdapter;begin Adapter := TJBluetoothAdapter.JavaClass.getDefaultAdapter; if Adapter.isEnabled then ShowMessage('Bluetooth有效。') else ShowMessage('Bluetooth无效。');end;
相关阅读 >>
winapi 字符及字符串函数(3): charupper - 字符或字符串转大写
Delphi 获取其它软件的tlistbox句柄,怎么取得listbox中的数据
Delphi 简单的操作memo1剪切 复制 粘贴 撤销 全选 清空
更多相关阅读请进入《Delphi》频道 >>