The main class is a jump:
String [] mimeTypes={MimeType. DOC, MimeType. DOCX, MimeType. PDF, MimeType. PPT, MimeType. PPTX, MimeType. XLS,
MimeType. XLSX MimeType. IMAGE1 MimeType. IMAGE2, MimeType. IMAGE3, MimeType. IMAGE4, MimeType. IMAGE6, MimeType. TEXT, MimeType. IMAGE5};
Intent Intent=new Intent (Intent. ACTION_GET_CONTENT);
If (mimeTypes!=null) {
Intent. PutExtra (intent. EXTRA_MIME_TYPES mimeTypes);
}
Intent. SetType (" * */");
Intent. AddCategory (intent. CATEGORY_OPENABLE);
startActivityForResult (intent, 1);//click perform jumps Public static class MimeType {
.
Public static final String IMAGE5="image/tiff";
}
Under a listing of the class to add
. Problem is: after click, choose the file management system at the file, found the tif files cannot be identified, millet VIVO mobile phone does not recognize, but huawei mobile phone can identify,
CodePudding user response:
refer to the original poster day_moon response: master class is a jump: String [] mimeTypes={MimeType. DOC, MimeType. DOCX, MimeType. PDF, MimeType. PPT, MimeType. PPTX, MimeType. XLS, MimeType. XLSX MimeType. IMAGE1 MimeType. IMAGE2, MimeType. IMAGE3, MimeType. IMAGE4, MimeType. IMAGE6, MimeType. TEXT, MimeType. IMAGE5}; Intent Intent=new Intent (Intent. ACTION_GET_CONTENT); If (mimeTypes!=null) { Intent. PutExtra (intent. EXTRA_MIME_TYPES mimeTypes); } Intent. SetType (" * */"); Intent. AddCategory (intent. CATEGORY_OPENABLE); startActivityForResult (intent, 1);//click perform jumps Public static class MimeType { . Public static final String IMAGE5="image/tiff"; } Under a listing of the class to add . Problem is: after click, choose the file management system at the file, found the tif files cannot be identified, millet VIVO mobile phone does not recognize, but huawei mobile phone can identify, Tif format is not common, so some mobile phone system may not support it CodePudding user response:
The commonly used tif print format,,, CodePudding user response:
The great god answer trouble know