0

为什么此代码是特定于设备的?

ContentValues values = new ContentValues();
values.put(BluetoothShare.URI, Uri.fromFile(new File(uri.getPath())).toString());

//values.put(BluetoothShare.URI, uri.toString());
values.put(BluetoothShare.MIMETYPE, "image/jpeg");
values.put(BluetoothShare.DESTINATION,device.getAddress());
values.put(BluetoothShare.DIRECTION,BluetoothShare.DIRECTION_OUTBOUND);

Long ts = System.currentTimeMillis();
values.put(BluetoothShare.TIMESTAMP, ts);
final Uri contentUri =  getApplicationContext().getContentResolver().
                               insert(BluetoothShare.CONTENT_URI, values);
4

0 回答 0