Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't get Bluetooth device list #562

Open
dhaval23996 opened this issue Oct 29, 2022 · 1 comment
Open

I can't get Bluetooth device list #562

dhaval23996 opened this issue Oct 29, 2022 · 1 comment

Comments

@dhaval23996
Copy link

Hi, thank you very much for the project, I am using this dependancies. It will help me a lot! I have used below method to get bluetooth devices list can not get device list.

BleManager bleManager = BleManager.getInstance();
		BleScanRuleConfig scanRuleConfig = new BleScanRuleConfig.Builder().setAutoConnect(false)
				.setScanTimeOut(8000).build();
		bleManager.initScanRule(scanRuleConfig);
		BleManager.getInstance().scan(new BleScanCallback() {
			@Override
			public void onScanStarted(boolean success) {
				Log.e(TAG, "onScanStarted");
			}

			@Override
			public void onScanning(BleDevice bleDevice) {
				Log.e(TAG, "onScanning");
			}

			@Override
			public void onScanFinished(List<BleDevice> scanResultList) {
				Log.e(TAG, "onScanFinished: " + scanResultList.size());
			}
		});
@sasa2211
Copy link

打开手机的gps,并动态获取手机的位置权限

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants