I just got a strange indexoutofboundsexception that I can\'t seem to reproduce. It seems to be related to my listactivity:
java.lang.IndexOutOfBoundsExceptio
@Kevin Qiu the hint to hide stuff helped. I only had to hide the headerview, not the whole list. Here's the code that worked for me, assuming that the header view is named mHeaderView
@Override
public void onStop() {
super.onStop();
mHeaderView.setVisibility(View.GONE);// fixes weird bug with header view
}
And to Make sure it shows up after you switch to a different app, do the code below.
@Override
public void onStart() {
if(mHeaderView.getVisibility() == View.GONE)
mHeaderView.setVisibility(View.VISIBLE);
super.onStart();
}