@Override public void onServiceConnected(ComponentName name, IBinder service) { notificationService = ((NotificationServiceBinder) service).getService(); if (notificationCallback != null) { notificationCallback.doStuff(); } // String deviceId = DeviceInfoUtil.getDeviceId(Application.this); String token = PushUtil.createMD5Token(Application.this); loginXmppClient(token, token, notificationService.getPushManager()); }