/**
* 发送广播,通知UI层有新的消息
*/
private static void sendNewIsReadBroadcast(Context context) {
Intent intent = new Intent();
intent.setAction(Constants.NEW_ISREAD_ACTION);
context.sendBroadcast(intent);
Log.e("发送了吗");
}
private void initYJLJXX(){
// wcl.updatadb();
registerYJLJRec();
}
private void registerYJLJRec() {
receiver2 = new UpdateBroadcastReceiver();
IntentFilter filter = new IntentFilter(ConstantsAction.NEW_ISREAD_ACTION);
registerReceiver(receiver2, filter);
}
public static class UpdateUserInfoBroadcastReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
wcl.updatadb();
}
}