コード例 #1
0
  private void stopBluetoothListening() {
    if (bluetoothServiceIntent != null) {
      activity.stopService(bluetoothServiceIntent);
      bluetoothServiceIntent = null;
    }

    bluetoothMac = null;
  }
コード例 #2
0
 private void handleLocalApp() {
   final Intent intent =
       new Intent(Intent.ACTION_VIEW, Uri.parse(determineBitcoinRequestStr(false)));
   startActivity(intent);
   activity.finish();
 }
コード例 #3
0
 private void handleCopy() {
   final String request = determineBitcoinRequestStr(false);
   clipboardManager.setText(request);
   activity.toast(R.string.request_coins_clipboard_msg);
 }
コード例 #4
0
  private void startBluetoothListening() {
    bluetoothMac = Bluetooth.compressMac(bluetoothAdapter.getAddress());

    bluetoothServiceIntent = new Intent(activity, AcceptBluetoothService.class);
    activity.startService(bluetoothServiceIntent);
  }