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();
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---