actually I\'ve read some previous questions about this...
this is the code that I use
auto = (ListView)findViewById(R.id.auto); String[] projection =
I think one more best approach is there.You can add one tag as position with the button using (button.setTag()) method and whenever user will click button just take the tag of this button. it will more easy.
Thanks and Regards Rahul