0
设备之间的蓝牙共享文件,出现: - 无法打开共享文件。蓝牙文件共享 - 无法打开共享文件
我想送存储在图片目录下的图像,以及我的照片的名字是:kitkat.jpg
我是给错误的道路?
Intent intent = new Intent();
intent.setAction(Intent.ACTION_SEND);
intent.setComponent(new ComponentName(
"com.android.bluetooth",
"com.android.bluetooth.opp.BluetoothOppLauncherActivity"));
intent.setType("image/jpeg");
File file = new File(Environment.getExternalStoragePublicDirectory
(Environment.DIRECTORY_PICTURES).toString() + "/kitkat.jpg");
intent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(file));
startActivity(intent);
我在图片目录中存储图片,即:kitkat.jpg ...告诉我提供的路径是否有误 – Sun
检查更新的答案 –