0
다른 프로세스에서 실행되고 부팅 할 때 서비스가 필요합니다.서비스 사용 방법
또한 내 응용 프로그램은, 그와 통신한다
또한 본인은 appliaction 내 서비스를 사용하는 것을 허용하지 않습니다.어떤 방법이 있습니까?
private ServiceConnection mConnection = new ServiceConnection() {
public void onServiceConnected(ComponentName className, IBinder binder) {
service = ((BoxService.MyBinder) binder).getService();
Toast.makeText(mainActivity.this, "Connected", Toast.LENGTH_SHORT)
.show();
}
public void onServiceDisconnected(ComponentName className) {
service = null;
}
};
void doBindService() {
bindService(new Intent(this, BoxService.class), mConnection,
Context.BIND_AUTO_CREATE);
}
내 과정에서 서비스를 사용할 때이 잘 작동하지만, 내가 diffrent 과정에서 그것을 사용하고자 할 때, 나는 바인딩에서 오류가 발생,
내가 무엇을 할 수 있습니까?