本文整理自网络,侵删。
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;
相关阅读 >>
Delphi webbrowser多次执行documentcomplete
Delphi tidhttp+tidssliohandlersocket+ssl
Delphi运行时的问题,cannot focus a disabled or invisible window!
更多相关阅读请进入《Delphi》频道 >>