public static void v(String tag, String message) { v(tag, message, null); }
private boolean tryToRegisterForNetworkStatusNotifications(Context context) { synchronized (lock) { if (hasRegisteredReceiver) { return true; } try { if (context == null) { return false; } context = context.getApplicationContext(); context.registerReceiver(this, new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION)); hasRegisteredReceiver = true; return true; } catch (ReceiverCallNotAllowedException e) { // In practice, this only happens with the push service, which will trigger a retry soon afterwards. PLog.v(TAG, "Cannot register a broadcast receiver because the executing " + "thread is currently in a broadcast receiver. Will try again later."); return false; } } }
return; PLog.v(TAG, "Received push data: " + pushDataStr);