I have data loaded into a listview with custom cursorAdapter, my question is how can I pass a variable to the adapter cursor from the activity where I call the cursor, I do not know if they understand me.
Try to pass it through the constructor
mProdcutoAdapter=new SelectCursorAdapterProductos(this,null,codcabecera);
so in the adapter class
public SelectCursorAdapterProductos(Context context, Cursor c, String cod) {
super(context, c, 0);
codpedido=cod;
}
but it does not assign the code to the variable that I need, the variable ordered is still in null