-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
Code works in Activities, but inside a service both post or postRemote only post to the local event listeners.
public class WearService extends Service {
public WearService() {
}
@Override
public void onCreate() {
super.onCreate();
EventBus.getDefault().register(this);
}
public void onEvent(Long i) {
L.e("onEvent:long "+i);
pushToWear();
}
public void onEvent(String s) {
// called after pushToWear!!!!
}
private void pushToWear() {
...
EventBus.getDefault().postRemote(payload.toString(), this);
}
}
Metadata
Metadata
Assignees
Labels
No labels