本来是通过以下方式连接到蓝牙,但是目前我不晓得名片的位置是什么“Uri.parse(" file:///sdcard/caixin.png"))”;,难道从contentProvider里面拿吗
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setClassName("com.android.bluetooth", "com.android.bluetooth.opp.BluetoothOppLauncherActivity");
intent.putExtra(Intent.EXTRA_STREAM, Uri.parse(" file:///sdcard/caixin.png")); // imageUri set previously
intent.setType("image/png");
startActivity(intent);
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setClassName("com.android.bluetooth", "com.android.bluetooth.opp.BluetoothOppLauncherActivity");
intent.putExtra(Intent.EXTRA_STREAM, Uri.parse(" file:///sdcard/caixin.png")); // imageUri set previously
intent.setType("image/png");
startActivity(intent);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货