onItemSelectListener or onItemClickListener, both or none???

by kivy » Fri, 16 Jul 2010 06:53:56 GMT


Sponsored Links
 Hi there,

I have a question regarding the onSelectedItemListener and
onClickItemListener in Android. I am trying to select an item within
my GridView by clicking on it. Additionally the optionsmenu shall open
(and later I would like to select an optionmenu item that shall
trigger an action with the selected GridView item, e.g. I select an
item, the menu opens, I click Email and this opens the phone's email
app and attaches the item directly to a new email).

When I use the onClickItemListener together with openOptionsMenu();
the menu opens, but the item doesn't get selected.

Now, when I use the onSelectedItemListener I cannot click on the item
on the emulator's "touchscreen" to select it but have to use the
phone's keys.

Is there any way to combine both things, so that I select a GridView
item on the touchscreen, open the options menu, click an menu item and
e.g. attach the selected item to an email?

If someone could help me with that, that would be fantastic. Thank you.

--



Other Threads

1. sdcard not detected in Android 1.0

Hi,
   I tried flashing all the images in android 1.0 with opencore 2.0
(mastercore) on G1 device(htc dream) with sdcard but the sdcard is not
detected with my music application. I tried the same with the android
1.5 with opencore 1.0 (cupcake) on G1 device, the sdcard is detected
with no issue.Can anyone  help me in resolving the issue on
Android1.0.
  Please help me in this issue asap as its too urgent.

Thanks

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. Android porting onto Zoom II

Hi,

I am involved in porting android onto Omap 3430 ZoomII.

I would like to add myself to this group.

priya

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. my SD card can't work

4. android + pidgin = ???

5. Packaging SQLite DB for deployment

6. /dev/video

7. Scrolling speed in Gallery widget