Android RemoteExceptions and Services
问题 So I've written a Service and an Activity for the Android OS. My service is running in it's own process, so all the communication between my Activities and the Service happens via IPC. I use the standard Android .aidl mechanism for this. So far everything works fine. However, the AIDL generates all method stubs using "throws RemoteException" so I have to handle them. I did a quick grep on the entire Android source-code and only found three cases where this exception is ever thrown. These are