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. MARQUEE_Speed Control

Is there any way to control the speed of Marquee text?? I have done
the MARQUEE. But the text is moving in a constant speed. Is there any
method to adjust the speed?

2. adb & atmel devboards works for anyone?


Anyone managed to use any ATMEL development board as a debbugging
target for Android?

I used the latest release of the USB driver with one of the Atmel
boards running Android - the device appears fine with the default USB
drivers downloaded from Google (in the device manager appears as
Android Composite ADB Interface). The driver gives no error, it seems
to work. Before installing the driver Vista recognized it as some
"network gadget" so it seems the USB communication works with the
board on some level.

The device has enabled Settings/Aplications/Development/USB Debugging

The adb bridge gives no device in the device list (only the emulator
if I start one). Tried to rescan USB devices with "adb usb" - the
result is error: device not found

Any clues, hints?


3. Creating a bubble when clicking on map pin

4. multiple layouts

5. see this

6. Carnegie Mellon University seeks Android developers opinion

7. How to emulate camera by using webcam?