java.lang.IllegalStateException: Fragment not attached to Activity
当在AFragment里面调用BFramgent的某个方法的时候,BFragment的上下文对象为空:getActivity()==null,这种情况下就会报这个错误。解决办法:if(!isAdded()){
return;
}
if(!HttpHelper.isNetworkConnected(getActivity())){
toast(getString(R.string.toast_net