Home | History | Annotate | Download | only in opp

Lines Matching refs:mimetype

103                             .getColumnIndexOrThrow(BluetoothShare.MIMETYPE));
157 public static void openReceivedFile(Context context, String fileName, String mimetype,
159 if (fileName == null || mimetype == null) {
160 Log.e(TAG, "ERROR: Para fileName ==null, or mimetype == null");
185 if (isRecognizedFileType(context, path, mimetype)) {
187 activityIntent.setDataAndType(path, mimetype);
191 if (V) Log.d(TAG, "ACTION_VIEW intent sent out: " + path + " / " + mimetype);
194 if (V) Log.d(TAG, "no activity for handling ACTION_VIEW intent: " + mimetype, ex);
209 public static boolean isRecognizedFileType(Context context, Uri fileUri, String mimetype) {
212 if (D) Log.d(TAG, "RecognizedFileType() fileUri: " + fileUri + " mimetype: " + mimetype);
215 mimetypeIntent.setDataAndType(fileUri, mimetype);
220 if (D) Log.d(TAG, "NO application to handle MIME type " + mimetype);
292 values.put(BluetoothShare.MIMETYPE, transInfo.mFileType);