How can I figure out what I selected from a dynamically populated listview?

by yun » Tue, 01 Apr 2008 11:48:12 GMT


Sponsored Links
 Hi,

I have a listview of "recipes" which is dynamically populated from a
database of recipes. If I select a recipe, it should take me to a page
containing that recipe's details. However, since its dynamically
populated, there is no id on the"recipe" textview, so I wouldn't know
which recipe was actually selected. Currently I'm using this hacky
method of counting the number of times the user pushes Keypad_up/down,
but there has got to be a better way to do this.

Thanks,
yun
--~--~---------~--~----~------------~-------~--~----~



How can I figure out what I selected from a dynamically populated listview?

by [EMAIL PROTECTED] » Tue, 01 Apr 2008 14:24:05 GMT


 Use listview.getSelectedItem() or something like that to retrieve the
dataobject related to the selected item.



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


Sponsored Links


How can I figure out what I selected from a dynamically populated listview?

by yun » Tue, 01 Apr 2008 16:50:06 GMT


 getSelectedItem() returns the listview.




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



Other Threads

1. Perdana XL Unlimited 150rb/

RR,

Dititipin temen kartu perdana XL Internet Unlimited, paket Pra Bayar (masih
segel).
Perbulannya bayar 150rb, nomornya 10 digit *0817-821-xxx*
Paketnya tertulis edisi Jabodetabek, so saya nggak tahu apa bisa dipake
diluar Jabodetabek :D

Mau dilepas 300rb /pc, stock cuma 7pcs.
Yang minat silakan japri ke *deska...@gmail.com*

Mods and Admin, thank you jalumnya :)

*************
Deska Affif
088-1100-GAYA (4292) | Y!: GadgetGaya
www.gadgetgaya.com  |  Light Up Your Gadget!

-- 
"Indonesian Android Community [id-android]" 

2. Dvi resolution

Hi Group,

I am using Omap3evm and rowboat android port.

What maximum dvi resolution output can be obtained?
How to change/support dvi output resolution to 19201080 (1080p).

Ashish

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

3. Spica EXXJCE Custom MOD leMOD

4. Can't get animations working.

5. Almost 10k Android Apps Added In March [Android Market Continues To Grow, Android vs iPhone Gets Mo re Interesting All The Time] 禄 TFTS 鈥?Technology, Gadgets & Curiosities

6. Question on showing contacts with all numbers

7. which folder is the protocol source code for data service (packet service)