我正在关注IPCEventBus的帖子IPC in Android using GreenRobot eventbus。
public class Listener implements IIpcEventBusConnectionListener, IIpcEventBusObserver {
public Listener() {
IIpcEventBusConnector connector =
ConnectorFactory.getInstance().buildConnector(context, this, "com.blueengine.login");
connector.startConnection();
}
@Override
public void onConnected(IIpcEventBusConnector connector) {
connector.registerObserver(this);
}
@Override
public void onEvent(IEventIpc event) {
}
@Override
public void onDisconnected(IIpcEventBusConnector connector) {
}
}
然后在我的登录应用
上我想发送一个名为 UserLoggin 的活动。我该怎么做?
public class UserLoggin implements IEventIpc
{
}