我程序中用到广播比较多?并且广播携带的数据都是new的,数据页比较多,并且广播需要多个地方接收,这样广播的对象怎么是否?请教高手指点。
Intent i = new Intent(Const.DATABC);//广播消息,实现类之间的交互
Bundle mBundle = new Bundle();
//进行数据反序列化,还原数据
mBundle.putString("JSONOBJSTR", LCYDataJSON.toString());
i.putExtras(mBundle);
if(null!= FragmentRealData.s_context)
{
// Log.d(TAG, "Broad to FragmentRealData:"+8);
FragmentRealData.s_context.sendBroadcast(i);
}
是在sendBroadcast后,mBundle = null吗?
Intent i = new Intent(Const.DATABC);//广播消息,实现类之间的交互
Bundle mBundle = new Bundle();
//进行数据反序列化,还原数据
mBundle.putString("JSONOBJSTR", LCYDataJSON.toString());
i.putExtras(mBundle);
if(null!= FragmentRealData.s_context)
{
// Log.d(TAG, "Broad to FragmentRealData:"+8);
FragmentRealData.s_context.sendBroadcast(i);
}
是在sendBroadcast后,mBundle = null吗?