@Override
public void onDeviceSelected(final BluetoothDevice device, final String name) {
if (mConnectionProgressDialog != null) {
mConnectionProgressDialog.setTitle(getString(R.string.prog_dialog_connect_title));
mConnectionProgressDialog.setMessage(getString(R.string.prog_dialog_connect_message));
mConnectionProgressDialog.show();
}
final Activity activity = getActivity();
final Intent service = new Intent(activity, UpdateService.class);
service.putExtra(UpdateService.EXTRA_DATA, device);
updateUiForBeacons(BluetoothProfile.STATE_CONNECTED, UpdateService.LOCKED);
activity.startService(service);
mBounnd = true;
activity.bindService(service, mServiceConnection, 0);
}
UpdateFragment.java 文件源码
java
阅读 31
收藏 0
点赞 0
评论 0
项目:Android-nRF-Beacon-for-Eddystone
作者:
评论列表
文章目录