actually I\'ve read some previous questions about this...
this is the code that I use
auto = (ListView)findViewById(R.id.auto);
String[] projection =
do you execute this
btnNxt = (Button) findViewById(R.id.btnNext);
btnNxt.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
//Here I need to get that position
});
inside the getView method? if so it's very easy
btnNxt = (Button) findViewById(R.id.btnNext);
btnNxt.setTag(position);
btnNxt.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
int position=(Integer)arg0.getTag();
});
from this: https://stackoverflow.com/a/20542034