}
3.在SecondAPP里,修改MyService。
public class MyService extends Service {
//是否运行标识符,true -> 运行
private boolean running;
//默认显示的信息
private String info = “正在运行”;
public MyService() {
}
@Override
public IBinder onBind(Intent intent) {
return new IMyServiceAidlInterface.Stub() {
@Override
public void basicTypes(int anInt, long aLong, boolean aBoolean, float aFloat, double aDouble, String aString) throws RemoteException {
}
@Override
public void setInfo(String info) throws RemoteException {
MyService.this.info = info;
}
};
}
@Override
public boolean onUnbind(Intent intent) {
return super.onUnbind(intent);
}
@Override
publ