Hi Guy,

Its so simple as you are setting adpter for listview from data structure
e.g. array,arraylist,linkedlist u can use two arraylist or any other in
which one stores name to display on listview and other stores id. now these
two arraylists will have same size. and clicking on one item in list u can
get corresponding id from arraylist with clicked selected position.
hopefully this helps.

--
Thanks & Regards,
Kapil Lokhande | Dexter Advisory Pvt. Ltd. <http://dexterltd.com/> | Android
Developer
[image: dexterlogo.jpg]


On Wed, Apr 27, 2011 at 3:41 AM, TreKing <[email protected]> wrote:

> On Sat, Apr 23, 2011 at 12:36 AM, Guy Cothal <[email protected]> wrote:
>
>> HOW DO I GET THE ID FOR THE RECORD
>>
>
> You will have some data structure that holds you data, say Record. This
> will be the content of the Adapter that backs your ListView. When you select
> an item in the ListView it indexes the list of Records, from which you get
> the specific Record instance and it's ID.
>
> If that does not make sense, review ListView, Adapters, and the relevant
> examples in the documentation.
>
>
> -------------------------------------------------------------------------------------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

<<dexterlogo.jpg>>

Reply via email to