Lines Matching refs:mimetype
120 .getColumnIndexOrThrow(BluetoothShare.MIMETYPE));
172 public static void openReceivedFile(Context context, String fileName, String mimetype,
174 if (fileName == null || mimetype == null) {
175 Log.e(TAG, "ERROR: Para fileName ==null, or mimetype == null");
201 if (isRecognizedFileType(context, path, mimetype)) {
203 activityIntent.setDataAndTypeAndNormalize(path, mimetype);
222 if (V) Log.d(TAG, "ACTION_VIEW intent sent out: " + path + " / " + mimetype);
225 if (V) Log.d(TAG, "no activity for handling ACTION_VIEW intent: " + mimetype, ex);
240 public static boolean isRecognizedFileType(Context context, Uri fileUri, String mimetype) {
243 if (D) Log.d(TAG, "RecognizedFileType() fileUri: " + fileUri + " mimetype: " + mimetype);
246 mimetypeIntent.setDataAndTypeAndNormalize(fileUri, mimetype);
251 if (D) Log.d(TAG, "NO application to handle MIME type " + mimetype);
323 values.put(BluetoothShare.MIMETYPE, transInfo.mFileType);