방법
1
. Context 이용한 호출
public
class
GridViewAdapter
extends
BaseAdapter {
int
count = ((PlanListActivity)PlanListActivity.mContext).getRealListCount();
// 널포인터에러
}
2
. 액티비티 인스턴스를 이용한 호출
PlanListActivity plA;
count = plA.getRealListCount();