Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
sharingIntent.setType("image/jpeg");
sharingIntent.setComponent(new ComponentName( "com.android.bluetooth", "com.android.bluetooth.opp.BluetoothOppLauncherActivity"));
sharingIntent.putExtra(Intent.EXTRA_STREAM, imageUri);
startActivity(sharingIntent);
sharingIntent.setType("image/jpeg");
sharingIntent.setComponent(new ComponentName( "com.android.bluetooth", "com.android.bluetooth.opp.BluetoothOppLauncherActivity"));
sharingIntent.putExtra(Intent.EXTRA_STREAM, imageUri);
startActivity(sharingIntent);
本文介绍了一种通过蓝牙分享JPEG格式图片的方法。使用了Android系统的Intent机制,设置分享类型为image/jpeg,并指定了蓝牙分享组件。
5916

被折叠的 条评论
为什么被折叠?



