Actually i figured that out between posts... but since you cannot use
an int on creating the context menu i run into the same issue on any
item that requires a long click
On Nov 17, 10:43 pm, Romain Guy <[EMAIL PROTECTED]> wrote:
> This is perfectly normal. Just use the position parameter given to you
> in onListItemClick().
>
>
>
>
>
> On Mon, Nov 17, 2008 at 7:08 PM, Protocol-X <[EMAIL PROTECTED]> wrote:
>
> > Hello all,
>
> > I have been dealing with this issue for a long time and have yet to
> > find a solution online anywhere.
>
> > Using a ListAvtivity i encounter an issue with jsut the touch screen.
> > below is a quick example of the code:
> > WHen using the trackball everything is correct but when using the
> > touch screen no matter what item on my list i select the position is
> > always indicated as Zero... any ideas?
>
> > protected void onListItemClick(ListView l, View v, int position, long
> > id) {
> > super.onListItemClick(l, v, position, id);
>
> > int SrowID= (int) this.getSelectedItemId();
>
> > Toast.makeText(this, "'"+SrowID+"'", Toast.LENGTH_SHORT).show();
>
> > }
>
> --
> Romain Guywww.curious-creature.org- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---