private void stopBluetoothListening() { if (bluetoothServiceIntent != null) { activity.stopService(bluetoothServiceIntent); bluetoothServiceIntent = null; } bluetoothMac = null; }
private void handleLocalApp() { final Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(determineBitcoinRequestStr(false))); startActivity(intent); activity.finish(); }
private void handleCopy() { final String request = determineBitcoinRequestStr(false); clipboardManager.setText(request); activity.toast(R.string.request_coins_clipboard_msg); }
private void startBluetoothListening() { bluetoothMac = Bluetooth.compressMac(bluetoothAdapter.getAddress()); bluetoothServiceIntent = new Intent(activity, AcceptBluetoothService.class); activity.startService(bluetoothServiceIntent); }