CursorAdapter
requires that you pass in a Context
when you initialize it. If you want to update the ActionBar
within your CursorAdapter
, you could initialize an ActionBar
object by casting Activity
to the constructor's Context
.
private final ActionBar mActionBar;
public YourAdapter (Context context, Cursor c, int flags) {
mActionBar = ((Activity) context).getActionBar();
}