I have an application which takes data values (coordinates) from a service, and works fine, but crashes after about seven or eight minutes.
In logcat there appears a lot of this message:
02-24 09:50:35.761: E/RemoteException(6395): android.os.DeadObjectException
these messages are from the application not service, but I suppose that is because the service fails?
[UPDATE]
With the comments I understand better that the problems is caused by service's failure, but I read this question How to fix android.os.DeadObjectException android X (similar to mine) but the answer... is some confuse to me.
this is my ondestroy():
@Override
public void onDestroy() {
Toast.makeText(this, "Servicio destruido", Toast.LENGTH_SHORT).show();
Log.d("SERVICEBOOT", "Servicio destruido");
capture.control(0);
}
How can I know which element closed my service?
you are using the instance of an object that no longer exist in memory as parent process is stopped.