![]() ![]() public void openAllFiles(File url) throws IOException else if(url.toString().contains(".3gp") || url.toString().contains(".mpg") || url.toString().contains(".mpeg") || url.toString().contains(".mpe") || url.toString().contains(".mp4") || url.toString().contains(". For example, if you know upfront that your app is supposed to open PDF files, the following. But here i handled repeatedly used file types, without disturbing default behaviour.Īnd the snippet is as below. Preview any type of file supported by the mobile device. Is there a blanket set of intent-filters that register a specific activity with any file containing the desired file extension from anywhere on the Android device?Ĭan open any type of file. Learn how to recover your username or password. I can't open the files from the Email application on the phone however and as I say, some files do not open from the Gmail application with my application and some do! First, open the Command Prompt on your PC by typing cmd in the Windows Search bar and then selecting Command Prompt from the search results. Log into your Google account with your username and password. The files will then appear in the same Windows folder as the ZIP file. The easiest is to right-click it and select Extract All. It works some times with Gmail (some files open, while some don't), and I can open a file from the file explorer. Creating, opening, and saving files works the same way across Office apps. To open the ZIP file, you have two options. I've been working on an application which is set to open a file with a specific extension. ![]()
0 Comments
Leave a Reply. |