remoteexception

Android RemoteExceptions and Services

老子叫甜甜 提交于 2019-12-17 22:14:44
问题 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

Randomly closing app - InputManagerService: Got RemoteException sending setActive(false) notification

耗尽温柔 提交于 2019-12-07 09:46:22
问题 I've a very simple Android app, similar to fingerpaint application. I'm drawing some lines on the screen with my finger. My problem is that, app closes itself randomly, taking me back to Android home screen. Only log I can see on LogCat is that line: (Warning) Tag: InputManagerService: Got RemoteException sending setActive(false) notification to pid 4962 uid 10077. No exception is thrown. I've tried compiling project against Android 2.0, 2.1 and 2.2... I've tried disabling debuggable

Randomly closing app - InputManagerService: Got RemoteException sending setActive(false) notification

丶灬走出姿态 提交于 2019-12-05 16:44:18
I've a very simple Android app, similar to fingerpaint application. I'm drawing some lines on the screen with my finger. My problem is that, app closes itself randomly, taking me back to Android home screen. Only log I can see on LogCat is that line: (Warning) Tag: InputManagerService: Got RemoteException sending setActive(false) notification to pid 4962 uid 10077. No exception is thrown. I've tried compiling project against Android 2.0, 2.1 and 2.2... I've tried disabling debuggable attribute in manifest. I'm having this problem on both Nexus One and 2.2 Emulator. My problem was drawing on

Android RemoteExceptions and Services

人盡茶涼 提交于 2019-11-28 17:54:09
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 in a different service that I don't connect with. I checked the C-sources as well because in theory