Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void onDataChanged(DataEventBuffer dataEvents) {
- if (BuildConfig.DEBUG)
- Log.d(Constants.LOGTAG, "Data Changed: " + dataEvents.getCount());
- NotificationManager notificationManagerCompat = ((NotificationManager) getSystemService(NOTIFICATION_SERVICE));
- for (DataEvent dataEvent : dataEvents) {
- if (dataEvent.getType() == DataEvent.TYPE_CHANGED) {
- LocalBroadcastManager.getInstance(this).sendBroadcast(new Intent(WearConstants.ACTION_TRAIN_INFORMATION_RECEIVED));
- DataMap dataMap = DataMap.fromByteArray(dataEvent.getDataItem().getData());
- StationDataResponse objStationDataListSerializable = SerializationUtils.deserialize((byte[]) dataMap.get(Constants.STATION_DATA_LIST));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement