Long Press ListView item to open AlertDialog

by Abhi » Fri, 11 Dec 2009 03:35:48 GMT


Sponsored Links
 Hi,

I am trying to use the long press option on the listview items to open
a multi choice Alert Dialog. Is this possible?

Abhishek

--



Long Press ListView item to open AlertDialog

by Jason Proctor » Fri, 11 Dec 2009 03:40:15 GMT


 yes.



>


Sponsored Links


Long Press ListView item to open AlertDialog

by Abhi » Fri, 11 Dec 2009 03:49:28 GMT


 would you be able to guide me to the right tutorial? I am unable to
find it

Thanks,

Abhi

On Dec 10, 2:39pm, Jason Proctor <jason.android.li...@gmail.com>


> >



Long Press ListView item to open AlertDialog

by Jason Proctor » Fri, 11 Dec 2009 03:54:24 GMT


 check Activity.registerForContextMenu()

and Activity.onCreateContextMenu()

works for me.


>>  >



Long Press ListView item to open AlertDialog

by Abhi » Fri, 11 Dec 2009 04:04:09 GMT


 Jason,

Thanks. But this is for opening a context menu on long press. I am
trying to open the alert dialog instead.

Abhishek

On Dec 10, 2:53pm, Jason Proctor <jason.android.li...@gmail.com>



> >> >



Long Press ListView item to open AlertDialog

by Jason Proctor » Fri, 11 Dec 2009 04:08:28 GMT


 oh sorry i misread your post.

have you played with overriding View.setLongClickable() and 
View.setOnLongClickListener() ?

opening a dialog when the latter goes off should work.





>>  >>  >



Other Threads

1. unable to delete all references

Hi all,
It is my very first mail to and dev.
sorry it may be a silly question, i am getting frustated by this.

i am very new on android however have worked on pl/sql.
I have created two projects as helloWorld and helloAndroid(with some
customization).
I have deleted HelloWorld project from my workspace .Again start
eclipse and as i run(Launch) my
helloAndroid ,the deleted application is still visible, while there
should be no visibility of HelloWorld.

Also, when i am trying to navigate to HelloWorld(the deleted one)
through file>>>>open file in eclipse i am not getting my deleted
project which is fine.Then why it is appearing when i am trying to run
only helloAndroid.

-- 

2. Soft Keyboard in Landscape

I am building from source and running in the emulator.  I would like
to know if the soft keyboard has support for operating in Landscape
mode.  Portrait appears to work fine, but when switching the emulator
to Landscape, it appears to be working on the premise that a hard
keyboard is in operation.  Is it possible to use the soft keyboard in
Landscape and how would I enable this if so?

Regards,
Julie

--~--~---------~--~----~------------~-------~--~----~

3. why is the app store sooo silly

4. How to add images with textview in Listview

5. FroYo PC Emulator not showing WiFi Hotspot USB Tether menu

6. Slow - Jerky view Animation

7. Export and Import Contacts as a vCard. Android OS 2.l