How to make your software appear in the open list

Source: Internet
Author: User

<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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.