New ComponentName this class null null

Here, is the content of whatever is being viewed by the user in this activity, is the name of the activity class, and is the menu being modified.

In this case, the Intent we are using to pick actions from requires that appropriate receivers support the . Then we add the options to the menu with and the following parameters:

• The sort position for this set of menu choices, typically set to 0 (which appear in the order added to the menu) or (which appear after other menu choices).

• A unique number for this set of menu choices, or 0 if you do not need a number.

• A instance representing the activity that is populating its menu – this is used to filter out the activity’s own actions so the activity can handle its own actions as it sees fit.

• An array of instances that are the “specific” matches – any actions matching those Intents are shown in the menu before any other possible actions.

• The for which you want the available actions.

• A set of flags. The only one of likely relevance is represented as , which means matching actions must also implement the category. If you do not need this, use a value of 0 for the flags.

• An array of , which will hold the menu items matching the array of instances supplied as the “specifics,” or if you do not need those items (or are not using “specifics”).

 








Дата добавления: 2015-05-16; просмотров: 576;


Поиск по сайту:

При помощи поиска вы сможете найти нужную вам информацию.

Поделитесь с друзьями:

Если вам перенёс пользу информационный материал, или помог в учебе – поделитесь этим сайтом с друзьями и знакомыми.
helpiks.org - Хелпикс.Орг - 2014-2024 год. Материал сайта представляется для ознакомительного и учебного использования. | Поддержка
Генерация страницы за: 0.004 сек.