Extras in Android development

Source: Internet
Author: User

 The Extras property is primarily used to pass the additional data required by the target component. Set by the Putextras () method. often used as a intent,broadcast receiver and other components of the incoming data use! Now, let's see what the extras is.

EXTRA constant Value

Significance

Extra_alarm_count

Number of Pending Alarms that hold the delay

Extra_bcc

An array of strings that hold the message's secret address

Extra_cc

An array of strings that hold the e-mail cc addresses

Extra_changed_component_name

Deprecated. (out of date)

Extra_changed_component_name_list

Array of names of changed components to be used when calling Action_package_changed

Extra_data_removed

When used with action_package_removed, indicates whether to completely unload (remove Programs and data) or partially unload (leaving the data, which means it is possible to update the application)

Extra_dock_state

This DOCK state is required for action_dock_event. The value it can take is extra_dock_state_undocked,extra_dock_state_desk,extra_dock_state_car.

Extra_dock_state_car

Car base

Extra_dock_state_desk

Desktop Dock

Extra_dock_state_undocked

No dock base

Extra_dont_kill_app

Overloads the default Restart app's behavior with a Boolean value called action_package_removed or action_package_changed

Extra_email

An array of strings that hold e-mail addresses

Extra_initial_intents

Add an additional Activity selector to the select list when Action_chooser is called

Extra_intent

With Action_pick_activity. Choose the Activity you want

Extra_key_event

KeyEvent object to hold the button triggering Intent

Extra_phone_number

Hold the phone number when calling Action_call

Extra_remote_intent_token

The remote Intent

Extra_replacing

A Boolean value that mates with action_package_removed to indicate whether the program is replaced (reinstall the program)

Extra_shortcut_icon

The name of the icon string, which corresponds to the type Bitmap, as the icon for the shortcut

Extra_shortcut_icon_resource

Icon of the name of the resource string, type Shortcuticonresource, as the icon for the shortcut

Extra_shortcut_intent

In Intent for shortcut (shortcut)

extra_stream

a content: uri holding a stream of data associated  with the intent, used with action_send to supply the data  being sent.

Extra_shortcut_name

When you create a shortcut to an Activity with Action_create_shortcut, specify the name of the shortcut

Extra_subject

Hold message subject string

extra_template

the initial data to place in a newly created  record. use with action_insert. the data here is a map  containing the same fields as would be given to the  Underlying contentprovider.insert ()  call.

Extra_text

Store email Content

Extra_title

With Action_chooser, specify the Title of the Dialog when you create the CHOOSER Dialog.

Reprint please indicate the source =>csdn fat Tiger: HTTP://BLOG.CSDN.NET/LJPHHJ

Extra_uid

An int type, with action_uid_removed support to register the UID package, convenient when action_package_removed or action_package_changed trigger can

Find the same target (use UID to differentiate)



Extras in Android development

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.