<Activity Android: Name = ". easynote "Android: Label =" @ string/app_name "Android: launchmode =" singletask "Android: screenorientation =" portrait "> <intent-filter> <action Android: name = "android. intent. action. main "/> <category Android: Name =" android. intent. category. launcher "/> </intent-filter> <action Android: Name =" android. intent. action. view "> </Action> <category Android: Name =" android. intent. category. default "> </Category> <data Android: mimetype =" text/plain "> </data> </intent-filter> </activity>
Copy code
The first <intent-filter> tag is available in every program. The key is to add the second tag! In this way, your application will appear in the open list by default...
Note that you need to change mimetype to the type you need. The text file is of course text/plain.
There are other common examples:
- Text/plain (plain text)
- Text/html (HTML document)
- Application/XHTML + XML (XHTML document)
- Image/GIF (GIF image)
- Image/JPEG (JPEG image) [image/pjpeg in PHP]
- Image/PNG (PNG Image) [image/X-PNG in PHP]
- Video/MPEG (mPEG animation)
- Application/octet-stream (any binary data)
- Application/pdf (PDF)
- Application/MSWord (Microsoft Word file)
- Message/rfc822 (RFC 822 format)
- Multipart/alternative (HTML form and plain text form of HTML mail, the same content is expressed in different forms)
- Application/X-WWW-form-urlencoded (Form submitted using the http post method)
- Multipart/form-data (same as above, but mainly used when the form is submitted along with file upload)
How to make your software appear in the open list