CATEGORY list corresponding to intent in Android

Source: Internet
Author: User
Android 1.5, 1.6android.intent.category.alternative android. intent. category. browsable android. intent. category. defaandroid android. intent. category. development_preference android. intent. category. embed android. intent. category. home android. intent. category. info android. intent. category. launcher android. intent. category. monkey android. intent. category. openable android. intent. category. preference android. intent. category. selected_alternative android. intent. category. tab Android 2.0, 2.0.1, 2.1 adds a new car seat and charging seat android. intent. category. car_dock android. intent. category. desk_dock Android 2.2 adds the driving mode android. intent. category. car_mode alternative

As you will see later in this chapter, the purpose of an intent filter is to use actions to help fill in the context menu. The alternative type is specified. In a data type project, the default action can be replaced. For example, when a contact's default action is viewed, it may be edited or deleted. ❑ Selected_alternative is similar to alternative, but alternative always points to a single action using the intent resolution described below. Selected_alternative is used when a list of possibilities is required. ❑ Browsable specifies the action in the browser. When intent is triggered in the browser, it is specified as a browsable type. Define default sets this type to make the component the default action of data defined in the intent filter. This is also necessary for activities started with explicit intent. ❑ Gadget: by setting the gadget type, you can specify that this activity can be embedded into other activities to allow. ❑ Homehome activity is the first activity displayed when the device starts (login screen. By specifying the intent filter as the home type without specifying the action, you are setting it as an alternative to the local home screen. The launch launcher uses this type to enable an activity as the startup Item of the application. The ❑ datadata tag allows you to specify the data matching that the component can act on. If your component can process multiple conditions, you can contain multiple conditions. You can use any combination of the following attributes to specify the data supported by the component: Allow Android: host to specify a valid Host Name (for example, Com. Google ). Customized Android: mimetype allows you to set the data types that can be processed by components. For example, <type android: value = "Vnd. Android. cursor. DIR/*"/> can match any android cursor. Valid Android: path valid URI path value (for example,/transport/boats /). Using Android: port a valid port on a specific host. Upload Android: scheme requires a special icon (such as content or HTTP ). From: http://tantan.iteye.com/blog/1329438

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.